I used to greet the Prophet ﷺ with salam while he was in prayer, and he would return my greeting. But when we returned, I greeted him and he did not return my greeting. He said, "In the prayer there is occupation enough."
حدثنا عبد الله بن أبي شيبة حدثنا ابن فضيل عن الأعمش عن إبراهيم عن علقمة
كنت أسلم على النبي ﷺ وهو في الصلاة فيرد علي فلما رجعنا سلمت عليه فلم يرد علي وقال إن في الصلاة لشغلا