Doubt about the prayer
Question: When a person doubts whether he has prayed or not, what should he do?
Answer: When a Muslim doubts about an obligatory prayer, whether he has prayed it or not, then in this case he should pray it immediately. The Prophet ﷺ said:
«من نسي صلاة فليصل إذا ذكرها، لا كفارة لها إلا ذلك»
“Whoever forgets a prayer, let him pray it when he remembers it; this alone is its expiation.”
Taking care of the prayers is obligatory on every Muslim, and he should strive to perform the prayer in congregation.
Allah the Exalted says:
«﴿حَافِظُوْا عَلَى الصَّلَوَاتِ وَالصَّلَاةِ الْوُسْطٰى وَقُوْمُوْا لِلَّهِ قَانِتِيْنَ﴾»
“Guard the prayers, and (especially) the middle prayer, and stand before Allah in obedience.”
And He said:
«﴿ واقيمو ا الصلوة واتوا الزكوة و اركعوا مع الراكعين﴾»
“Establish the prayer, give the zakah, and bow with those who bow.”
Therefore, one should take care of the prayer and strive to perform it in congregation. A prayer that is missed for some reason should be performed quickly when it is remembered; performing the prayer is its expiation.