We used to greet the Prophet ﷺ with the salam when we were in Mecca, before we journeyed to the land of Abyssinia. When we returned from Abyssinia, we came to him and greeted him, but he did not return our greeting. I was overcome with worry, fearing every possible reason, until they finished the prayer. Then I asked him about it, and he said, "Allah brings about whatever He wills in His command, and He has now decreed that we are not to speak during the prayer."
حدثنا سفيان عن عاصم عن أبي وائل
كنا نسلم على النبي ﷺ إذا كنا بمكة قبل أن نأتي أرض الحبشة فلما قدمنا من أرض الحبشة أتيناه فسلمنا عليه فلم يرد فأخذني ما قرب وما بعد حتى قضوا الصلاة فسألته فقال إن الله عز وجل يحدث في أمره ما يشاء وإنه قد أحدث من أمره أن لا نتكلم في الصلاة
Its chain of transmission is sahih, and it is a longer version of 3563. Ibn Athir said, it is said of a man when something troubles and disturbs him, "It seized him, what is near and what is far, and what is old and what is new," as though he were thinking and worrying about the distant and near of his affairs, meaning that this was the reason for his refraining from returning the greeting. "If we were" appears in manuscript J as "if we were," and the correction is from manuscript K.