Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
bayhaqi:13780ʿAmr b. ʿUthmān And Kathīr b. ʿUbayd > Baqiyyah > al-Zubaydī

[Machine] Al-Zuhri told me about this story that they said, "O Messenger of Allah, can we marry our slave girls?" So Allah revealed, "Indeed, We created you from a male and a female and made you peoples and tribes that you may know one another." [Surah Al-Hujurat 13]  

البيهقي:١٣٧٨٠وَفِيمَا ذَكَرَ أَبُو دَاوُدَ فِي الْمَرَاسِيلِ عَنْ عَمْرِو بْنِ عُثْمَانَ وَكَثِيرُ بْنُ عُبَيْدٍ عَنْ بَقِيَّةَ ثنا الزُّبَيْدِيُّ

حَدَّثَنِي الزُّهْرِيُّ فِي هَذِهِ الْقِصَّةِ أَنَّهُمْ قَالُوا يَا رَسُولَ اللهِ تُزَوِّجُ بَنَاتِنَا مَوَالِيَنَا؟ فَأَنْزَلَ اللهُ ﷻ {إِنَّا خَلَقْنَاكُمْ مِنْ ذَكَرٍ وَأُنْثَى وَجَعَلْنَاكُمْ شُعُوبًا وَقَبَائِلَ لِتَعَارَفُوا} [الحجرات 13] الْآيَةَ