Assalamu Alaykum Ustadh Habib I haven’t prayed Maghrib yet and now the congregation is praying Ishaa. Can I pray Maghrib behind them and once I’ve finished Maghrib I give Salam and stand up to start Ishaa behind them and pray the remaining 3 rakah after they conclude the salah?

Ustadh AbdulAziz al-Haqqan
Yes