[Machine] The Messenger of Allah ﷺ used to recite in prayer and he heard the recitation of a young man from the Ansar, and the verse "And when the Qur'an is recited, then listen to it and pay attention" [Al-A'raf 204] was revealed. And it was narrated from another source that Mujahid said in the sermon on Friday, and from another source in prayer and sermon.
كَانَ رَسُولُ اللهِ ﷺ يَقْرَأُ فِي الصَّلَاةِ فَسَمِعَ قِرَاءَةَ فَتًى مِنَ الْأَنْصَارِ فَنَزَلَتْ {وَإِذَا قُرِئَ الْقُرْآنُ فَاسْتَمِعُوا لَهُ وَأَنْصِتُوا} [الأعراف 204] وَرُوِّينَا مِنْ وَجْهٍ آخَرَ عَنْ مُجَاهِدٍ أَنَّهُ قَالَ فِي الْخُطْبَةِ يَوْمَ الْجُمُعَةِ وَمِنْ وَجْهٍ آخَرَ فِي الصَّلَاةِ وَالْخُطْبَةِ