“Abu ‘Abd Allah (a.s.), has said, ‘If you perform Salah (prayer) and you think it is time, when in fact is not time yet, but the time comes when you are still performing that Salah (prayer) it is sufficient.’”
Man Lā Yaḥḍuruh al-Faqīh #667"If you begin praying while you believe that it is within the (correct) time, and the time for the prayer enters while you are in the middle...