Remembering not to have offered the `Asr Prayer while performing the Maghrib Prayer

A: You should repeat the Maghrib Prayer, as the order is necessary. As for the Ma'mums, their Salah is valid, as they did not know what you did.May Allah grant us success. May peace and blessings be upon our Prophet Muhammad, his family, and Companions.