Abu Hurairah reported,

The Messenger of Allah ﷺ finished a prayer in which he had recited aloud and asked, "Did any of you recite along with me just now?"A man answered, "Yes, Messenger of Allah."He said, "I was wondering why I felt the Quran being contested with me."So the people stopped reciting along with the Messenger of Allah ﷺ in the prayers in which he recited aloud, once they heard this from the Messenger of Allah ﷺ.

Tirmidhi 312

Sahih

حدثنا الأنصاري حدثنا معن حدثنا مالك بن أنس عن ابن شهاب عن ابن أكيمة الليثي

عن أبي هريرة

أن رسول الله ﷺ انصرف من صلاة جهر فيها بالقراءة فقال هل قرأ معي أحد منكم آنفا فقال رجل نعم يا رسول الله قال إني أقول مالي أنازع القرآن قال فانتهى الناس عن القراءة مع رسول الله ﷺ فيما جهر فيه رسول الله ﷺ من الصلوات بالقراءة حين سمعوا ذلك من رسول الله ﷺ

الترمذي 312صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami Tirmidhi
Book
Prayer
Chapter
Leaving recitation behind the imam when the imam recites aloud
Numbering
Darussalam 312
Tirmidhi 312