We used to speak during the prayer, one of us would talk to his brother about his needs, until this 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.
حدثنا مسدد حدثنا يحيى عن إسماعيل بن أبي خالد عن الحارث بن شبيل عن أبي عمرو الشيباني
كنا نتكلم في الصلاة يكلم أحدنا أخاه في حاجته حتى نزلت هذه الآية {حافظوا على الصلوات والصلاة الوسطى وقوموا لله قانتين} فأمرنا بالسكوت