السلام عليكم ورحمة الله وبركاته I was praying Isha with the Imam, on the 3rd Rakah I thought we were praying Maghreb due to lack of attention, then realised we are praying Isha when the imam got up for the 4th, I started the Salah with intention for Isha, but should I repeat the Salah due to this?

Ustadh AbdulAziz al-Haqqan
No