Sahih al-Bukhari, Book 49, Hadith 18 (Bukhari 2434)

Narrated Jabir bin `Abdullah:

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.