Full Sharh — Mishkat al-Masabih 2697
وَعَنْ جَابِرٍ قَالَ: جَاءَ عَبْدٌ فَبَايَعَ النَّبِيَّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ عَلَى الْهِجْرَةِ وَلَمْ يَشْعُرْ أَنَّهُ عَبْدٌ فَجَاءَ سَيِّدُهُ يُرِيدُهُ فَقَالَ لَهُ النَّبِيُّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ «بِعَيْنِه» فَاشْتَرَاهُ بِعَبْدَيْنِ أَسْوَدَيْنِ وَلَمْ يُبَايِعْ أَحَدًا بَعْدَهُ حَتَّى يَسْأَلَهُ أَعَبْدٌ هُوَ أَوْ حُرٌّ. رَوَاهُ مُسلم
English Translation
Jabir told that a slave came and swore allegiance to the Prophet promising to emigrate, but he did not know that he was a slave. When his master came in search of him the Prophet said to him, ‘Sell him to me," and he bought him for two black slaves. Afterwards he never took an oath of allegiance from anyone without asking him whether he was a slave or free. Muslim transmitted it.
Source
Mishkat al-Masabih(مشكاة المصابيح)
Business Transactions
Hadith Number
2697