Jabir bin Abdullah reported,

A slave came and pledged allegiance to the Prophet ﷺ for emigration, and the Prophet ﷺ did not realize he was a slave. Then his master came seeking him, 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 had asked whether he was a slave.

Tirmidhi 1239

Sahih

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

عن جابر قال

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

الترمذي 1239صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami Tirmidhi
Book
Sales
Chapter
Buying a slave for two slaves
Numbering
Darussalam 1239
Tirmidhi 1239