“The Messenger of Allah ﷺ said: ‘When the Imam recites, then listen attentively, and if he is sitting (in the prayer) then the first remembrance that anyone of you recites should be the Tashahhud.’”
قَالَ رَسُولُ اللَّهِ ﷺ إِذَا قَرَأَ الإِمَامُ فَأَنْصِتُوا فَإِذَا كَانَ عِنْدَ الْقَعْدَةِ فَلْيَكُنْ أَوَّلَ ذِكْرِ أَحَدِكُمُ التَّشَهُّدُ