Rules of congregational prayers
1469. When a follower makes his Niyyat, it is necessary for him to specify the Imam. But, it is not necessary for him to know his name. If he makes Niyyat that he is following the Imam of the present congregation, his prayer is in order.