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:25:54

And it is He who has created from water a human being and made him ˹a relative by˺ lineage and marriage. And ever is your Lord competent ˹concerning creation˺.  

And He it is Who created man from water, ˹He created˺ from a sperm-drop a human being, and made for him ties of blood and ties of marriage, whether it be a male or a female, they marry for the purposes of procreation. For your Lord is ever Powerful, with the power to do whatever He will.
القرآن:٢٥:٥٤

وَهُوَ الَّذِي خَلَقَ مِنَ الْمَاءِ بَشَرًا فَجَعَلَهُ نَسَبًا وَصِهْرًا ۗ وَكَانَ رَبُّكَ قَدِيرًا  

{وهو الذي خلق من الماء بشرا} من المني إنسانا {فجعله نسبا} ذا نسب {وصهرا} ذا صهر بأن يتزوج ذكرا كان أو أنثي طلبا للتناسل {وكان ربُّك قديرا} قادرا على ما يشاء.