Jabir bin Abdullah reported,

A slave came and pledged allegiance to the Messenger of Allah ﷺ for emigration, and the Prophet ﷺ did not realize that he was a slave. Then his master came, and the Prophet ﷺ said, "Sell him to me." So he bought him in exchange for two black slaves. After that, he would not accept anyone's pledge until he asked whether he was a slave.

Tirmidhi 1596

Sahih

حدثنا قتيبة حدثنا الليث بن سعد عن أبي الزبير

عن جابر أنه قال

جاء عبد فبايع رسول الله ﷺ على الهجرة ولا يشعر النبي ﷺ أنه عبد فجاء سيده فقال النبي ﷺ بعنيه فاشتراه بعبدين أسودين ولم يبايع أحدا بعد حتى يسأله أعبد هو

الترمذي 1596صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami Tirmidhi
Book
Expeditions
Chapter
Pledge of allegiance of the slave
Numbering
Darussalam 1596
Tirmidhi 1596