أَخْبَرَنَا مُحَمَّدُ بْنُ عَبْدِ اللهِ الْحَافِظُ، ثنا أَبُو بَكْرِ بْنُ إِسْحَاقَ، أنبأ مُحَمَّدُ بْنُ أَيُّوبَ، أنبأ قُتَيْبَةُ بْنُ سَعِيدٍ، ثنا اللَّيْثُ، عَنْ أَبِي الزُّبَيْرِ، عَنْ جَابِرٍ رَضِيَ اللهُ عَنْهُ قَالَ: جَاءَ عَبْدٌ فَبَايَعَ النَّبِيَّ صَلَّى اللهُ عَلَيْهِ وَسَلَّمَ عَلَى الْهِجْرَةِ وَلَمْ يَشْعُرْ أَنَّهُ عَبْدٌ، فَجَاءَ سَيِّدُهُ يُرِيدُهُ فَقَالَ لَهُ النَّبِيُّ صَلَّى اللهُ عَلَيْهِ وَسَلَّمَ: " بِعْنِيهِ "، فَاشْتَرَاهُ بِعَبْدَيْنِ أَسْوَدَيْنِ ثُمَّ لَمْ يُبَايِعْ أَحَدًا بَعْدُ حَتَّى يَسْأَلَهُ أَعَبْدٌ هُوَ؟. رَوَاهُ مُسْلِمٌ فِي الصَّحِيحِ عَنْ قُتَيْبَةَ وَغَيْرِهِ قَالَ الشَّافِعِيُّ رَحِمَهُ اللهُ: وَلَوْ كَانَ الْإِسْلَامُ يُعْتِقُهُ لَمْ يَشْتَرِ مِنْهُ حُرًّا وَلَكِنَّهُ أَسْلَمَ غَيْرَ خَارِجٍ مِنْ بِلَادٍ مَنْصُوبٍ عَلَيْهَا الْحَرْبُ.
Sayyiduna Jabir (may Allah be pleased with him) says that a slave came and pledged allegiance to the Prophet (peace and blessings be upon him) for emigration. He (peace and blessings be upon him) did not know that he was a slave. Then his master came to take him. He (peace and blessings be upon him) said: "Sell him to me." So he (peace and blessings be upon him) bought him in exchange for two black slaves. After that, when taking the pledge, he would ask: "Is he not a slave?"
Imam al-Shafi'i (may Allah have mercy on him) says: If accepting Islam had freed him, a free man would not have been bought from him; but (this was) a person who accepted Islam without leaving a land of war.