Going Ahead of the Imam in Prayer
If you came up from the prostration before the imam prostrated, and did not repeat the prostration (i.e. with him), your prayer would be invalidated.
[Shurunbulali, Maraqi al-Falah; `Ala’ al-Din `Abidin, al-Hadiyya al-`Ala’iyya]
The basis is that the imam is followed in all actions of the prayer.
And Allah alone gives success.
Answered By Shaykh Faraz Rabbani