Sure Ash-Shura

42:50

أَوْ يُزَوِّجُهُمْ ذُكْرَانًۭا وَإِنَٰثًۭا ۖ وَيَجْعَلُ مَن يَشَآءُ عَقِيمًا ۚ إِنَّهُۥ عَلِيمٌۭ قَدِيرٌۭ

Oder (Er schenkt) beides zusammen, männliche und weibliche (Nachkommen). Und Er macht, wen Er will, unfruchtbar. Gewiß, Er ist Allwissend und Allmächtig.

Tafsir 42:50

Or He makes for whoever He wills both males and females and makes whoever He wills barren and childless. He knows what occurs and what will occur in the future. This is on account of the completeness of His knowledge and perfection of His wisdom. Nothing is hidden from Him. He is able to do all things, nothing is outside His ability.