Bulugh al-Maram 219
وَعَنْ زَيْدِ بْنِ أَرْقَمَ - رضي الله عنه - قَالَ: إِنْ كُنَّا لَنَتَكَلَّمُ فِي الصَّلَاةِ عَلَى ⦗٦٥⦘ عَهْدِ النَّبِيِّ - صلى الله عليه وسلم - يُكَلِّمُ أَحَدُنَا صَاحِبَهُ بِحَاجَتِهِ, حَتَّى نَزَلَتْ: {حَافِظُوا عَلَى الصَّلَوَاتِ وَالصَّلَاةِ الْوُسْطَى وَقُومُوا لِلَّهِ قَانِتِينَ} الْبَقَرَة: ٢٣٨ , فَأُمِرْنَا بِالسُّكُوتِ, وَنُهِينَا عَنِ الْكَلَامِ. مُتَّفَقٌ عَلَيْهِ, وَاللَّفْظُ لِمُسْلِمٍ.
From Zayd ibn Arqam, may Allah be pleased with him, who said: We used to speak during the prayer in the time of the Prophet ﷺ, one of us speaking to his companion about his needs, until [this verse] was revealed: "Guard the prayers, and the middle prayer, and stand before Allah in devout obedience" (al-Baqarah 2:238). Then we were commanded to be silent and forbidden to speak. Agreed upon, and the wording is Muslim's.