[Machine] The Messenger of Allah, ﷺ , forbade the gaining of a slave until he knows where he is from, and the rest of this matter is mentioned in the book of expenses; where Ash-Shafi'i mentioned this issue in the chapter of the expenses of slaves.
نَهَى رَسُولُ اللهِ ﷺ عَنْ كَسْبِ الْأَمَةِ حَتَّى يُعْلَمَ مِنْ أَيْنَ هُوَ وَبَقِيَّةُ هَذَا الْبَابِ مَذْكُورٌ فِي كِتَابِ النَّفَقَاتِ؛ حَيْثُ ذَكَرَ الشَّافِعِيُّ هَذِهِ الْمَسْأَلَةَ فِي بَابِ نَفَقَةِ الْمَمَالِيكِ