One who intended an obligatory prayer and started it, then forgot and thought it was a voluntary prayer

Question
What is the ruling on someone who intended an obligatory prayer and started it, then forgot and thought it was a voluntary prayer, completing it under this assumption?
Answer

His prayer counts as the obligatory one and it is fulfilled for him. See: Al-Wiqayah p.144.

imam icon

Send your question to the smart assistant

If the previous answers are not appropriate, please send your question to the Mufti via