Q. Is it permissible for a woman, whose husband is sterile, to be artificially inseminated with sperm from a non-maḥram man (other than her husband), i.e., through placing the sperm in her womb?
A: In itself there is no legal impediment to inseminating a woman with the sperm of a non-maḥram man. However, it is obligatory to avoid the preliminary steps which are ḥarām, such as looking and touching. However, the born child in this way does not belong to the husband of the woman, rather to the person who donated the sperm and the woman whose egg and womb were used in the process.