Assalaam alaykum wa rahmatullahi. If a person starts a prayer before it time ends for example if the time for a prayer ends at 3:40pm. And he starts the prayer at 3:39pm and he has just said the opening takbir and began to pray or is still reciting al fatihah when the prayer time ends. Do he have to pray the prayer again with the intention of making it up if he started the prayer with the intention of starting the prayer before the time for the prayer ends?
All perfect praise be to Allaah, The Lord of the Worlds. I testify that there is none worthy of worship except Allaah, and that Muhammad is His slave and Messenger.
This person’s prayer is not rendered invalid because of the prayer time ending, and he is not obliged to repeat it with the intention of making it up; rather he should complete his prayer. Holding the intention of performing the prayer in its due time or that of making it up is not an obligation. It is enough for the worshipper to specify the prayer he is performing – Thuhr, ‘Asr, Maghrib, ‘Ishaa’ or Fajr – and it is not incumbent on him to specify whether he is performing it in its due time or making it up.
Al-Mawsoo‘ah Al-Fiqhiyyah (The Fiqh Encyclopedia) reads: "Muslim jurists held that, in general, it is not incumbent on the worshipper to specify whether he is performing it in its due time or making it up (after the end of the prayer’s time) in his intention to pray . . . . The Hanafis maintained that (as quoted by Ibn Nujaym), “If the worshipper specified in his intention which prayer he is performing, his prayer is valid whether he held the intention of performing it in its due time or that of making it up.”
Allaah Knows best.
You can search for fatwa through many choices