"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."
Jami` at-Tirmidhi Book 47, Hadith 38