Sunan Abi Dawud 617
Grading supplied with this record: Da'if (Al-Albani)
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
إِذَا قَضَى الإِمَامُ الصَّلاَةَ وَقَعَدَ فَأَحْدَثَ قَبْلَ أَنْ يَتَكَلَّمَ فَقَدْ تَمَّتْ صَلاَتُهُ وَمَنْ كَانَ خَلْفَهُ مِمَّنْ أَتَمَّ الصَّلاَةَ "
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.
Full reference and source
Sunan Abi Dawud 617 In-book : Book 2, Hadith 227 English translation : Book 2, Hadith 617
View source on Sunnah.com (opens in a new tab)