Infertility is of Two Types
Question :
What is your Eminence opinion regarding one who says:
"Infertility may be cured," when Allah says:
"and He renders barren whom He wills."
May Allah reward you with goodness.
Answer:
Our opinion is that infertility is of two types: One for which there is some cause and this may be treated - and one which is congenital that is, that Allah created that person infertile and this cannot be cured, and even if it was treated, it will be of no benefit, because Allah willed that he be infertile and there is none who can oppose His Decree.
Source:
Ibn 'Uthaimin
Fatawa Islamiyah, Vol. 5 Pages 171-172