It is narrated from Sayyiduna Jabir (may Allah be pleased with him) that he said: "If I entered somewhere while people were offering prayer, I would not greet them."
Hadith Referenceإتحاف الخيرة المهرة بزوائد المسانيد العشرة / كتاب الأدب وغيره / 5285
Hadith Gradingمحدثین:سكت عنه البوصيري، موقوف؛ إسناده حسن
Hadith Takhrij«أبو سفيان طلحة بن نافع: صدوق (من الحفظ)؛ وكيع وسفيان والأعمش أئمة، ورواية الأعمش عن أبي سفيان محمولة على الاتصال»