ومن نسي التسليم خلف الامام أجزاه تسليم الامام ومن سها فسلم قبل الامام فليس به بأس.
Regarding someone who forgets to say the taslim (final salutation of peace) behind the Imam, the Imam's taslim suffices for him. If someone mistakenly performs the taslim before the Imam, there is no harm in it.