This website is under review. Do not rely on it for final rulings.
Machine translation
Question
I was watching pornographic films, then I practised masturbation, and it was the time of the Dhuhr prayer. After that I went out of the house and drove by car, and a thought came into my mind saying: I hate life, and it was merely a heartfelt displeasure. Then I returned home and practised masturbation again, and I performed ghusl from janabah. At the end of the washing, I remembered the heartfelt displeasure and I thought that I had disbelieved, so I performed ghusl to enter Islam again, left the toilet, and pronounced the two testimonies of faith. The time of the Asr prayer came, so I made up the Dhuhr and Asr prayers... So am I a Muslim or a disbeliever? Are my prayers valid? And what should I do?.
Answer
All praise is due to Allah, and may peace and blessings be upon the Messenger of Allah, and upon his family and companions. To proceed:
All that you are suffering from is whisperings (waswasa), so leave them alone and do not pay them any attention. By the grace of Allah, you have not disbelieved through the whisperings and thoughts that occurred in your heart; rather, you are upon Islam, praise be to Allah. As for your deliberate delay of the prayer beyond its time, it is likewise not disbelief according to the majority of scholars. See fatwa number: 130853.
You must repent to Allah for what you have committed or are committing of sins, such as masturbation and its causes, and negligence regarding the prayer and other matters. You must also struggle against the whisperings and dismiss them entirely, and not yield to them, for yielding to whisperings leads you to a great evil.
And Allah knows best.
الحمد لله، والصلاة والسلام على رسول الله، وعلى آله وصحبه، أما بعد:
فكل ما تعاني منه هو الوساوس، فدعها عنك ولا تبال بها، وأنت بحمد الله لم تكفر بما وقع في قلبك من الوساوس والأفكار، بل أنت على الإسلام ـ والحمد لله ـ وأما تعمدك لتأخير الصلاة عن وقتها فليس كفرا كذلك عند أكثر العلماء، وانظر الفتوى رقم: 130853.
فعليك أن تتوب إلى الله مما اقترفته، أو تقترفه من الذنوب؛ كالاستمناء وأسبابه، والتهاون في أمر الصلاة وغير ذلك، وعليك أن تجاهد الوساوس وتطرحها بالكلية، ولا تسترسل معها، فإن استرسالك مع الوساوس يفضي بك إلى شر عظيم.
والله أعلم.
More fatwas from our library on the same topic