Fasting

Bukhari :: Book 3 :: Volume 31 :: Hadith 129

Narrated 'Alqama: While I was walking with 'Abdullah he said, "We were in the company of the Prophet and he said, 'He who can afford to marry should marry, because it will help him refrain from looking at other women, and save 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."

Source materials are from the University of Southern California MSA site
Hadith eBooks converted from Imaan Star