Qays reported,

When Abu Hurairah رضي الله عنه came forward together with his slave, both seeking Islam, the two became separated from one another along the way. Then he said, "I call you to witness that he is freed for the sake of Allah."

Bukhari 2532

Sahih

حدثنا شهاب بن عباد حدثنا إبراهيم بن حميد عن إسماعيل

عن قيس قال

لما أقبل أبو هريرة رضي الله عنه ومعه غلامه وهو يطلب الإسلام فضل أحدهما صاحبه بهذا وقال أما إني أشهدك أنه لله

البخاري 2532صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Emancipation of slaves
Chapter
If a man says of his slave "He is for Allah" and intends manumission, and witnessing in manumission
Numbering
Darussalam 2532
Bukhari 2532