Question:
What is the ruling on the prayer of an insane person?
Answer:
The prayer of an insane person is not valid.
❀ Allah the Exalted says:
يَا أَيُّهَا الَّذِينَ آمَنُوا لَا تَقْرَبُوا الصَّلَاةَ وَأَنْتُمْ سُكَارَى حَتَّى تَعْلَمُوا مَا تَقُولُونَ
O you who believe! Do not approach the prayer while you are intoxicated, until (your intoxication wears off and) you are aware of what you are saying.
❀ Shaykh al-Islam Ibn Taymiyyah (may Allah have mercy on him)
says:
اتفق العلماء على أنه لا تصح صلاة من زال عقله ب أى سبب زال، فكيف بالمجنون
The people of knowledge are agreed that the prayer of one whose intellect has been lost is not valid, whatever the cause of its loss; so how could the prayer of an insane person be valid?