Sahih Bukhari
Fasting
Volume: 003 / Book Number: 031 / Hadith Number: 129
his private parts from looking at other women, and save his private parts from committing illegal sexual relation; and he who cannot afford to marry is advised to fast, as fasting will diminish his sexual power."