Is it permissible to masturbate to obtain a semen sample for infertility and fertility tests, knowing that masturbation is forbidden in Islam?
It is permissible to masturbate by hand if there is a need for it, such as to extract semen for analysis to determine the cause of infertility. In this case, there is no harm in it, unlike masturbation without need.
Summarized from the full answer at Ftawy · reviewed Sep 2, 2026
Read the full answer on Ftawyhttps://ftawy.com/en/questions/25780