Islamic Ruling on Praying Missed Maghrib When Isha Has Started
If Maghrib is missed and Isha time has started, it is better to pray the missed Maghrib first, but praying Isha first is also allowed.

According to Islamic scholars, when a prayer is missed, it should be performed as soon as one remembers it. Prophet Muhammad ﷺ said: anyone who forgets a prayer or sleeps past it should pray it as soon as they remember.
If Maghrib is missed and Isha time is present, scholars advise that it is better to pray the missed Maghrib first, even if the Isha congregation has started, as long as there is enough time. This follows the guidance to complete missed prayers promptly and in order. However, if someone prays Isha first, it is still valid.
The short URL of the present article is: https://english.fikrokhabar.com/c0ks