One who intended an obligatory prayer and started it, then forgot and thought it was a voluntary prayer
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.