[Machine] Ghaylan bin Salamah embraced Islam, and he had ten women under his guardianship. The Prophet ﷺ commanded him to choose four of them and leave the rest. According to the narration of Ash-Shafi'i, Ghaylan bin Salamah ath-Thaqafi embraced Islam while having ten women with him, so the Prophet ﷺ told him to keep four and separate from the others.
أَسْلَمَ غَيْلَانُ بْنُ سَلَمَةَ وَتَحْتَهُ عَشْرُ نِسْوَةٍ فَأَمَرَ النَّبِيُّ ﷺ أَنْ يَخْتَارَ مِنْهُنَّ أَرْبَعًا وَيَتْرُكَ سَائِرَهُنَّ لَفْظُ حَدِيثِ إِسْحَاقَ 14041 وَفِي رِوَايَةِ الشَّافِعِيِّ أَنَّ غَيْلَانَ بْنَ سَلَمَةَ الثَّقَفِيَّ أَسْلَمَ وَعِنْدَهُ عَشْرُ نِسْوَةٍ فَقَالَ لَهُ النَّبِيُّ ﷺ أَمْسِكْ أَرْبَعًا وَفَارِقْ سَائِرَهُنَّ