Abu Musa Ashari reported,

The Messenger of Allah ﷺ said, "When the imam recites, listen attentively. And when you are in the sitting position, let the first remembrance any of you utters be the tashahhud."

Ibn Majah 847

Sahih

حدثنا يوسف بن موسى القطان حدثنا جرير عن سليمان التيمي عن قتادة عن أبي غلاب عن حطان بن عبد الله الرقاشي

عن أبي موسى الأشعري قال

قال رسول الله ﷺ إذا قرأ الإمام فأنصتوا فإذا كان عند القعدة فليكن أول ذكر أحدكم التشهد

ابن ماجه 847صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Ibn Majah
Book
Establishing prayer and the sunnah regarding it
Chapter
When the imam recites, listen attentively
Numbering
Darussalam 847
Ibn Majah 847