All perfect praise be to Allah, The Lord of the Worlds. I testify that there is none worthy of worship except Allah and that Muhammad is His slave and Messenger.
Your prayer is valid whether you finished it before the end of its prescribed time, or after it. Similarly, the prayer is valid even if you partly performed it on its prescribed time. In all these cases, the prayer is valid, even if the prostration of forgetfulness was completed after sunrise, or just before it. As has been shown, the prayer is not invalidated by any of these scenarios.
Since you write to us in Arabic sometimes, please refer to the Fatwa No. 283207 on our Arabic website.
Allah Knows best.