Sunan Abu Dawud
617
Daif+3

Narrated Abdullah ibn Amr ibn al-'As: The Prophet (ﷺ) said: When the Imam completes the prayer and sits (for reciting tashahhud), and then becomes defiled (i.e. his ablution becomes void) before he speaks (to someone), his prayer becomes complete. And those who prayed behind him also complete the prayer

DaifAl-Albani
DaifMuhammad Muhyi Al-Din Abdul Hamid