It wasnarrated that Abu Musa Al-Ash'ari said:
"The Messenger ofAllah(ﷺ) said: 'When the Imam recites, then listen attentively, andifhe is sitting (in the prayer) then the first remembrance thatanyoneof you recites should be the Tashahhud.'" (TH)
English reference (TH): Vol. 1, Book 5, Hadith 847 (TH)
Arabic reference (TH): Book 5, Hadith 896 (TH)