Question:
A man on the days of fasting in Ramadan surfs the internet in order to relieve the boredom and tries his best to avoid looking at obscene pictures, but he sometimes comes across pictures of women on the homepages of websites. He immediately turns away his gaze and regrets it. He dislikes seeing these pictures and does not look at them on purpose. Does seeing these pictures unintentionally invalidate or affect one's fasting? What should he do if his fasting is affected? Would such tainted fasting be acceptable?
Answer:
Answer:
All perfect praise be to Allah, the Lord of the Worlds. I testify that there is none worthy of worship except Allah, and that Muhammad is His Slave and Messenger.
Looking at obscene pictures does not invalidate one's fasting (in principle), nor is his reward decreased by the sudden glance (at an obscene picture) after which he turns away his eyes, nor is he sinful by this glance. When Jareer, may Allah be pleased with him, asked the Prophet about the sudden glance (on the face of a non-Mahram woman), he said: "Turn away your gaze." [Muslim and Abu Daawood] The Prophet also told ‘Ali, may Allah be pleased with him: "Do not let a second look follow the first, as the first look is for you, but the second is not for you." [Ahmad and At-Tirmithi] This means that the first unintentional glance does not count as a bad deed, whereas the second one counts because it is done on purpose. It should be noted that although misdeeds do not invalidate one's fasting, they may decrease its reward or wipe it out entirely. The Prophet said: "Perhaps a man takes from his fasting nothing except hunger and from his voluntary prayer at night nothing except wakefulness." [Ahmad and Ibn Maajah (this is Ibn Majaah's wording)]
Therefore, a Muslim should guard his fasting by refraining from prohibited looks and misdeeds in general. Misdeeds are evil and dangerous. We advise you to utilize the favor of having leisure time in what would benefit you in this life and in the Hereafter so that you would not be wasting it. The Prophet said: "There are two blessings which many people waste: health and free time." [Al-Bukhari and others]
Allah Knows best.