It is permissible to masturbate for the purpose of medical testing

Dear Brothers & Sisters,
As-Salaamu-Alaikum wa Rahmatullahi wa Barakatuh. (May Allah's Peace, Mercy and Blessings be upon all of you)
One of our brothers/sisters has asked this question:
I know masturbation is haraam in Islam. But if one want to check for the infertility, the laboratory people asking the sperm's of the man. We can't get the sperm without masturbating in the laboratory. So Please clear this issue as soon as possible. InshaAllah Allah will reward for U for this issue.
(There may be some grammatical and spelling errors in the above statement. The forum does not change anything from questions, comments and statements received from our readers for circulation in confidentiality.)
Check below answers in case you are looking for other related questions:

Answer:
Praise be to Allaah.

Yes, that is permissible. It says in Fataawa al-Shaykh ‘Abd al-‘Azeez ibn Humayd (may Allaah have mercy on him) that he was asked about that and he replied: 

There is nothing wrong with that so long as there is a need for it. Whoever masturbates without there being a need for it should be punished. But this is for a need, which is to produce semen for testing and to find out the reason why this person is not having children. The reason for that may rest with him or with his wife, so in this case there is nothing wrong with it in sha Allah.

 From Fataawa al-Shaykh ‘Abd al-‘Azeez ibn Humayd, p. 271.

 And Allaah knows best.

Whatever written of Truth and benefit is only due to Allah's Assistance and Guidance, and whatever of error is of me. Allah Alone Knows Best and He is the Only Source of Strength.

Related Answers:

Recommended answers for you:


Don't miss out to watch Islamhelpline sponsored Islamic Kids Competition

Click here for all videos