We used to speak during the prayer in the time of the Prophet ﷺ, one of us would speak to his companion about whatever he needed, until the verse was revealed, "Guard strictly the prayers, especially the middle prayer, and stand before Allah devoutly obedient" [Baqarah 2:238]. So we were commanded to remain silent.
حدثنا إبراهيم بن موسى أخبرنا عيسى هو ابن يونس عن إسماعيل عن الحارث بن شبيل عن أبي عمرو الشيباني قال قال لي
إن كنا لنتكلم في الصلاة على عهد النبي ﷺ يكلم أحدنا صاحبه بحاجته حتى نزلت {حافظوا على الصلوات والصلاة الوسطى وقوموا لله قانتين} فأمرنا بالسكوت