Congregational Prayer

If one is praying behind a Sunni imam in congregation, and the imam recites one of the Quranic verses that makes prostration obligatory and the rest of the congregation goes into prostration, what is one supposed to do?

It is permissible to offer the prayers behind a Sunni imam if such prayers cause closeness between the hearts. It is not permissible to do so if this was for the sake of adulation. However, one should recite himself in the first two Raka’at (units). If he hears the verse of prostration with them and they prostrate he can do so as well and his prayer will be in order.