Is it permissible to repeat the prayer if the worshipper entered with the intention of following an imam, but then the imam changed during the prayer?
It is permissible for the congregant to intend to separate from the imam and complete their prayer individually, or to intend to follow another imam. The questioner's prayer is valid, and this is the madhhab of the Shafi'is.
Summarized from the full answer at Ftawy · reviewed Sep 2, 2026
Read the full answer on Ftawyhttps://ftawy.com/en/questions/71727