Jabir bin Abdullah reported,

A slave came and pledged allegiance to the Prophet ﷺ for emigration, and the Prophet ﷺ did not realize that he was a slave. Then his master came looking for him, so the Prophet ﷺ said, "Sell him to me," and 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.

Nasai 4189

Sahih

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

عن جابر قال

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

النسائي 4189صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Nasai Sughra
Book
Pledge of allegiance
Chapter
Pledge of allegiance of the slaves
Numbering
Darussalam 4189
Nasai 4189