Hadith Al Bukhari 5066 (en en2) Masturbation (5) Whoever is not able to marry, should fast, as fasting diminishes his sexual power
Chapter: Whoever is not able to marry, is recommended to fast
Narrated `Abdullah:
We were with the Prophet (ﷺ) while we were young and had no wealth. So Allah's Messenger (ﷺ) said, "O young people! Whoever among you can marry, should marry, because it helps him lower his gaze and guard his modesty (i.e. his private parts from committing illegal sexual intercourse etc.), and whoever is not able to marry, should fast, as fasting diminishes his sexual power." - Hadith Al Bukhari 5066 (islam)
[5]And they who guard their private parts
[6]Except from their wives or those their right hands possess, for indeed, they will not be blamed - - Quran Al-Mu'minun(The Believers) 23:5-6 (islam)
Quran Al-Ma'arij(The Ascending Stairways) 70:30 (en en2 tfs tfs2) Muslim remains chaste, except with wives and slaves, they are free from blame
Except from their wives or those their right hands possess, for indeed, they are not to be blamed - - Quran Al-Ma'arij(The Ascending Stairways) 70:30 (islam)
Chapter: It is recommended to marry virgins
Jabir b. 'Abdullah (Allah be pleased with them) reported:
I married a woman, whereupon Allah's Messenger (ﷺ) said to me: Have you married? I said: Yes. He said: Is it a virgin or a previously married one (widow or divorced)? I said: With a previously married one, whereupon he said: Where had you been (away) from the amusements of virgins? Shu'ba said: I made a mention of it to 'Amr b. Dinar and he said: I too heard from Jabir making mention of that (that Allah's Apostle) said: Why didn't you marry a girl, so that you might sport with her and she might sport with you? - Hadith Muslim 715e (islam)
[8]And Judah said unto Onan, Go in unto thy brother's wife, and marry her, and raise up seed to thy brother.
[9]And Onan knew that the seed should not be his; and it came to pass, when he went in unto his brother's wife, that he spilled it on the ground, lest that he should give seed to his brother.
[10]And the thing which he did displeased the LORD: wherefore he slew him also. - Bible Genesis 38:8-10 (bible torah)