(7) باب إِذَا قَالَ رَجُلٌ لِعَبْدِهِ هُوَ لِلَّهِ وَنَوَى الْعِتْقَ، وَالإِشْهَادُ فِي الْعِتْقِ
Narrated Abu Huraira:
On my way to the Prophet (ﷺ) I was reciting:-- 'What a long tedious tiresome night! Nevertheless, it has saved us From the land of Kufr (disbelief).' I had a slave who ran away from me on the way. When I went to the Prophet (ﷺ) and gave the pledge of allegiance for embracing Islam, the slave showed up while I was still with the Prophet (ﷺ) who remarked, "O Abu Huraira! Here is your slave!" I said, "I manumit him for Allah's Sake," and so I freed him.
Reference: Sahih al-Bukhari 2531
In-book reference: Book 49, Hadith 16
USC-MSA web (English) reference(deprecated numbering scheme): Vol. 3, Book 46, Hadith 708