Zayd bin Arqam reported,

We used to speak during the prayer in the time of the Messenger of Allah ﷺ. One of us would address his companion about something he needed, until the verse was revealed, "Guard strictly the prayers" [Baqarah 2:238], and we were commanded to remain silent.

Azami 2592

Sahih

عن زيد بن أرقم قال

كنا لنتكلم في الصلاة على عهد رسول الله ﷺ، يكلم أحدنا صاحبه بحاجته حتى نزلت: {حفظوا على الصلوات} [ سورة البقرة: ٢٣٨] فأمرنا بالسكوت.

الأعظمي 2592صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Prayer
Chapter
What is prohibited and disliked in prayer
Section
Abrogation of speaking during prayer
Numbering
Jami al-Kamil 2592 (2nd edition)
Azami 2592