fiqhsalatimamannulatifsmamum
If the imam prayed without ablution deliberately, or if the follower knew it, the follower's prayer is invalid. If the imam forgot and the followers did not know, their prayer remains valid; only the imam repeats his own. Ash-Shafii holds that the followers' prayer is valid in both cases, and Abu Hanifa that it is invalid in both.