Al-Bukhari and others recorded it. I have traced it in The Etiquettes of Marriage (p. 180, new edition, al-Maʿārif).
Note: The annotator of Hadiths on Poetry graded the hadith of Rushayd Abu Abd Allah as good, despite declaring Rushayd weak in accordance with Ibn ʿAdi and al-Dhahabi. Perhaps he graded it good because of Thumamah’s narration from Anas, for he cited it immediately afterward through Ibn Majah and al-Tabarani. Remarkably, however, he made no comment on it at all. It is clear that this narration is the authentic one, as stated above, and that grading Rushayd’s hadith as good is a plain error, since it contradicts the preceding narrations. It is therefore rejected. If this indicates anything, it indicates—as people say nowadays—that he is a newcomer to this field of knowledge, especially since he did not cite the wording of Ibn Majah’s and al-Tabarani’s narration, so that readers could see that it differs from the wording of Rushayd’s narration. Consider this carefully! *
3155—(1) “What is this call of the Age of Ignorance?! Abandon it, for it is foul.”
It was recorded by al-Bukhari (4905 and 4907), Muslim (8/19), al-Tirmidhi (3312)—who said, “Good and authentic”—al-Tahawi in Mushkil al-Athar (4/239), Ibn Hibban (7/592/5958 and 8/193/6548), al-Bayhaqi in al-Dalaʾil (4/53–54), ʿAbd al-Razzaq in al-Musannaf (9/468/18041), Ahmad (3/392–393), and Abu Yaʿla (3/356–357 and 458), all through Sufyan ibn ʿUyaynah—with ʿAbd al-Razzaq also linking Maʿmar to him—from ʿAmr ibn Dinar, who heard Jabir ibn Abd Allah say:
“We were with the Prophet, peace and blessings be upon him, on a military expedition when a man from the Muhajirun kicked a man from the Ansar. The Ansari cried, ‘O Ansar!’ and the Muhajir cried, ‘O Muhajirun!’ Then the Messenger of Allah, peace and blessings be upon him, said:”