The Messenger of Allah ﷺ said, "There is no man who forsakes a Muslim in a place where his honor is violated and his dignity is diminished except that Allah will forsake him in a place where he longs for His support. And there is no man who supports a Muslim in a place where his dignity is diminished and his honor is violated except that Allah will support him in a place where he longs for His support."Yahya said, "Ubaydullah bin Abdullah bin Umar and Uqba bin Shaddad also narrated this to me."
حدثنا إسحق بن الصباح حدثنا ابن أبي مريم أخبرنا الليث قال حدثني يحيى بن سليم أنه سمع إسمعيل بن بشير يقول سمعت
قال رسول الله ﷺ ما من امرئ يخذل امرأ مسلما في موضع تنتهك فيه حرمته وينتقص فيه من عرضه إلا خذله الله في موطن يحب فيه نصرته وما من امرئ ينصر مسلما في موضع ينتقص فيه من عرضه وينتهك فيه من حرمته إلا نصره الله في موطن يحب نصرته قال يحيى وحدثنيه عبيد الله بن عبد الله بن عمر وعقبة بن شداد
Its isnad is daif. Ahmad narrated it: 4/30, from the hadith of Layth bin Saad, through this route.Yahya bin Salim and Ismail bin Bashir are both unidentified (majhul). See Taqrib and other sources.