A man amongst us declared that his slave would be freed after his death. The Prophet (ﷺ) called for that slave and sold him. The slave died the same year.
Sahih al-Bukhari Book 49, Hadith 18