(172) باب رَدِّ السَّلاَمِ فِي الصَّلاَةِ
Narrated Abdullah ibn Mas'ud:
We used to salute during prayer and talk about our needs. I came to the Messenger of Allah (ﷺ) and found him praying. I saluted him, but he did not respond to me. I recalled what happened to me in the past and in the present. When the Messenger of Allah (ﷺ) finished his prayer, he said to me: Allah, the Almighty, creates new command as He wishes, and Allah, the Exalted, has sent a fresh command that you must not talk during prayer. He then returned my salutation.
Reference: Sunan Abi Dawud 924
In-book reference: Book 2, Hadith 535
English translation: Book 3, Hadith 924