As-Sunan al-Kubra li al-Bayhaqi · 3019 · English · Hadith Unlocked
When the imam finishes the prayer and remains seated, then has a ritual impurity before speaking, his prayer is complete, as is the prayer of those behind him who completed the prayer.