Abdullah bin Masud reported,

We used to greet the Prophet ﷺ while he was in prayer, and he would return our greeting. But when we came back from our journey to the Negus and greeted him, he did not return our greeting, and he said, "Prayer demands one's full attention."Ibn Numayr narrated to us, Ishaq bin Mansur al-Saluli narrated to us, Hurayim bin Sufyan narrated to us, from Amash, from Ibrahim, from Alqama, from Abdullah رضي الله عنه, from the Prophet ﷺ, something similar.

Bukhari 1199

Sahih

حدثنا ابن نمير حدثنا ابن فضيل حدثنا الأعمش عن إبراهيم عن علقمة

عن عبد الله رضي الله عنه قال

كنا نسلم على النبي ﷺ وهو في الصلاة فيرد علينا فلما رجعنا من عند النجاشي سلمنا عليه فلم يرد علينا وقال إن في الصلاة شغلا حدثنا ابن نمير حدثنا إسحاق بن منصور السلولي حدثنا هريم بن سفيان عن الأعمش عن إبراهيم عن علقمة عن عبد الله رضي الله عنه عن النبي ﷺ نحوه

البخاري 1199صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Work during prayer
Chapter
What is forbidden of speech during prayer
Numbering
Darussalam 1199
Bukhari 1199