Answered by Ustadh Tabraze Azam
Question: As salam alaykum,
Am I considered to have missed the obligatory prayer if I am still praying while the time of the prayer exits?
I pray this finds you well, insha’Allah.
The only prayer which is invalidated by the ending of the specified time is Fajr. If sunrise occurs during the prayer, it would invalidate your prayer, and you would need to repeat the prayer after sunrise, some fifteen to twenty minutes or so later.
And Allah knows best.
Checked & Approved by Shaykh Faraz Rabbani