The following points can be considered to answer your questions: Firstly: The divine Legislator has issued rulings related to organizing sexual relations that leads to having sex without suppression and without the need to masturbate. Islam emphasizes early marriage and permits temporary marriage. However, society created impediments and obstructions for the proper implementation of these rules and guidance. So, in reality, society is to blame and the deficiency is not in Islamic law. Secondly: The medical research presents ideas that are subject to change, based on the development of such research. They do not present a definite, absolute reality. As such research is subject to change and development in the future, they cannot be relied upon. Such scientific research are also unable to detect the totality of the effects of masturbation, including the spiritual effect. Thirdly: If somebody enjoys habitual masturbation and is satisfied with it, this could lead to social decay. If women satisfy themselves and men satisfy themselves, this will be detrimental to the formation of good family units, and this harm is greater than any benefit that the medical research can try to prove, especially after the existence of other alternatives mentioned in the first point, like early marriage or temporary marriage.