Hanafi and Maliki Schools: This renders his prayer invalid.
Shaf‘i’ School: The prayer of the one who follows an Imam while praying alone is valid.
Hanbali School: The Hanbali Scholars held different views regarding this issue. However, the approved Hanbali opinion is that this prayer is valid as long as the Imam and the one following him are performing the same payer.