Jabir bin Abdullah reported,

We were on a military expedition when a man from the Muhajirun kicked a man from the Ansar from behind.The Ansari called out, "Help, Ansar!"The Muhajir called out, "Help, Muhajirun!"The Messenger of Allah ﷺ heard this and asked, "What is this?"They replied, "A man from the Muhajirun kicked a man from the Ansar, so the Ansari called out, 'Help, Ansar!' and the Muhajir called out, 'Help, Muhajirun!'"The Prophet ﷺ said, "Leave it, for it is rotten."Jabir said, when the Prophet ﷺ first arrived in Medina, the Ansar were the majority, but afterward the Muhajirun grew in number.Then Abdullah bin Ubayy said, "Have they done that? By Allah, when we return to Medina, the mightier among us will surely drive out the weaker."Umar bin Khattab رضي الله عنه said, "Messenger of Allah, let me strike the neck of this hypocrite."The Prophet ﷺ replied, "Leave him, lest the people say that Muhammad kills his own companions."

Bukhari 4907

Sahih

حدثنا الحميدي حدثنا سفيان قال حفظناه من عمرو بن دينار قال سمعت

جابر بن عبد الله رضي الله عنهما يقول

كنا في غزاة فكسع رجل من المهاجرين رجلا من الأنصار فقال الأنصاري يا للأنصار وقال المهاجري يا للمهاجرين فسمعها الله رسوله ﷺ قال ما هذا فقالوا كسع رجل من المهاجرين رجلا من الأنصار فقال الأنصاري يا للأنصار وقال المهاجري يا للمهاجرين فقال النبي ﷺ دعوها فإنها منتنة قال جابر وكانت الأنصار حين قدم النبي ﷺ أكثر ثم كثر المهاجرون بعد فقال عبد الله بن أبي أوقد فعلوا والله لئن رجعنا إلى المدينة ليخرجن الأعز منها الأذل فقال عمر بن الخطاب رضي الله عنه دعني يا رسول الله أضرب عنق هذا المنافق قال النبي ﷺ دعه لا يتحدث الناس أن محمدا يقتل أصحابه

البخاري 4907صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Tafsir
Chapter
His saying, "They are the ones who say, 'Do not spend on those who are with the Messenger of Allah until they disperse'" and scatter
Numbering
Darussalam 4907
Bukhari 4907