This pure monotheistic religion came to teach people how to control urges so that the Muslim individual who is distinguished by his character and behaviour would not remain a prisoner to his desires like an animal. Islam prescribes rulings, both obligatory and mustahabb (recommended), to protect him against the bad effects of being driven by his desires. Among these rulings is the prescription of fasting for those who cannot find the natural outlet for these desires in marriage, as ‘Abd-Allaah ibn Mas’ood (may Allaah be pleased with him) narrated, “We were young men with the Prophet (peace and blessings of Allaah be upon him) and we did not have anything (i.e., we could not afford to get married). The Messenger of Allaah (peace and blessings of Allaah be upon him) said to us, ‘O young men, whoever among you can afford to get married, then let him do so, for it is more effective in lowering the gaze and guarding chastity. And whoever is not able to do that, then let him fast, for that will be a shield for him.’” (al-Bukhaari, 5066; Muslim, 1400). Fasting reduces the effects that desires have on young people.
Although this ruling is addressed to young men, it may become more essential when there is more temptation and the means and motives for committing evil increase, especially for those who live in societies in which there is a great deal of wanton display and promiscuity. So they should be keen to do this act of worship in order to protect their chastity and religious commitment. As well as fasting, a person may seek help though praying to Allaah to protect his religious commitment and honour, and to make it easy for him to get married, as marriage protects one's chastity. He may also help himself by remembering the reward in Paradise that Allaah has prepared for those who steadfastly obey His commands and guard their chastity, namely al-hoor al-‘iyn (maidens in Paradise).