The Messenger of Allah ﷺ said, "Quraysh, the Ansar, Juhaynah, Mazina, Aslam, Ashja, and Ghifar are my allies, and they have no ally other than Allah ."
قال رسول الله ﷺ: قريش، والأنصار، وجهينة، ومزينة، وأسلم، وأشجع، وغفار: موالي، ليس لهم مولي دون الله عز وجل.
Bukhari narrated it in the Book of Virtues (3512), and Muslim in the Virtues of the Companions (2525), both of them through Sufyan, from Saad bin Ibrahim, from Abdul-Rahman bin Hurmuz Araj, from Abu Hurairah, who said, and then he mentioned it. The wording given is that of Muslim, and the wording of Bukhari is similar.