Sahih al-Bukhari, Hadith 4393

Narrated Abu Huraira: When I came to the Prophet said on my way, "O what a long tedious tiresome night; nevertheless, it has rescued me from the place of Heathenism." A slave of mine ran away on the way. When I reached the Prophet I gave him the oath of allegiance (for Islam), and while I was sitting with him, suddenly the slave appeared. The Prophet said to me. "O Abu Huraira! Here is your slave," I said, "He (i.e. the slave) is (free) for Allah's Sake," and manumitted him.

حَدَّثَنِي مُحَمَّدُ بْنُ الْعَلاَءِ، حَدَّثَنَا أَبُو أُسَامَةَ، حَدَّثَنَا إِسْمَاعِيلُ، عَنْ قَيْسٍ، عَنْ أَبِي هُرَيْرَةَ، قَالَ لَمَّا قَدِمْتُ عَلَى النَّبِيِّ صلى الله عليه وسلم قُلْتُ فِي الطَّرِيقِ: يَا لَيْلَةً مِنْ طُولِهَا وَعَنَائِهَا     عَلَى أَنَّهَا مِنْ دَارَةِ الْكُفْرِ نَجَّتِ وَأَبَقَ غُلاَمٌ لِي فِي الطَّرِيقِ، فَلَمَّا قَدِمْتُ عَلَى النَّبِيِّ صلى الله عليه وسلم فَبَايَعْتُهُ، فَبَيْنَا أَنَا عِنْدَهُ إِذْ طَلَعَ الْغُلاَمُ، فَقَالَ لِي النَّبِيُّ صلى الله عليه وسلم ‏"‏ يَا أَبَا هُرَيْرَةَ هَذَا غُلاَمُكَ ‏"‏‏.‏ فَقُلْتُ هُوَ لِوَجْهِ اللَّهِ تَعَالَى‏.‏ فَأَعْتَقْتُهُ‏.‏

sunnah.com