Ruling on offering the `Isha' Prayer in congregation then offering the Maghrib Prayer if someone is on travel

Q: I traveled from Makkah to Al-Madinah and arrived in it while the `Isha' (Night) Prayer was being offered. I offered the `Isha' then the Maghrib (Sunset) Prayer. I am asking about the ruling on this and what I should do if this is incorrect.

A: Abiding by the respective order of Salahs (Prayers) is obligatory. Since you offered the `Isha' before the Maghrib, you should make up for the `Isha' Prayer.May Allah grant us success. May peace and blessings be upon our Prophet Muhammad, his family, and Companions.