The Prophet ﷺ said: the similitude of a man who emancipates a slave at the time of his death is like that of a man who gives a present after satisfying his appetite.
قَالَ رَسُولُ اللَّهِ ﷺ مَثَلُ الَّذِي يُعْتِقُ عِنْدَ الْمَوْتِ كَمَثَلِ الَّذِي يُهْدِي إِذَا شَبِعَ