"During the time of the Messenger of Allah ﷺ, we would talk during Salat, so 'And stand before Allah with obedience (2:238) was revealed, ordering us to be silent." (Another chain) with similar wordings, but he added: "And we were forbidden from talking."
كُنَّا نَتَكَلَّمُ عَلَى عَهْدِ رَسُولِ اللَّهِ ﷺ فِي الصَّلاَةِ فَنَزَلَتْ (وَقُومُوا لِلَّهِ قَانِتِينَ ) فَأُمِرْنَا بِالسُّكُوتِ حَدَّثَنَا أَحْمَدُ بْنُ مَنِيعٍ حَدَّثَنَا هُشَيْمٌ حَدَّثَنَا إِسْمَاعِيلُ بْنُ أَبِي خَالِدٍ نَحْوَهُ وَزَادَ فِيهِ وَنُهِينَا عَنِ الْكَلاَمِ