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.
quran:3:6

It is He who forms you in the wombs however He wills. There is no deity except Him, the Exalted in Might, the Wise.  

He it is Who forms you in the wombs as He will, as males or females, white, black or otherwise. There is no god except Him, the Mighty, in His Kingdom, the Wise, in His actions.
القرآن:٣:٦

هُوَ الَّذِي يُصَوِّرُكُمْ فِي الْأَرْحَامِ كَيْفَ يَشَاءُ ۚ لَا إِلَٰهَ إِلَّا هُوَ الْعَزِيزُ الْحَكِيمُ  

{هو الذي يصوّركم في الأرحام كيف يشاء} من ذكورة وأنوثة وبياض وسواد وغير ذلك {لا إله إلا هو العزيز} في ملكه {الحكيم} في صنعه.