أحسن الله إليكم I had to make up Rakat/s after the congregation ended, once the Imam did the first tasleem many people in my masjid who also had to make up the rakah get up immediately, I accidentaly got up with them as I wasn't completely paying attention, does this invalidate the Rakah / Salah?

Ustadh AbdulAziz al-Haqqan
There are 2 sayings for the people of ilm regarding this based on whether the 2nd tasleem is mandatory or not.