Jami` at-Tirmidhi Book 49, Hadith 3
"I said: 'O Messenger of Allah! Indeed the Quraish have sat and spoken between themselves about the best of them, and they made your likeness as that of a palm tree in a wasteland.' So the Prophet (ﷺ) said: 'Indeed, Allah created the creation and made me from the best of their categories, and the best of the two categories (Arabs and Non-Arabs), then He chose between the tribes and made me from the best tribe, then He chose between the houses and made me from the best house. So I am the best of them in person and the best of them in house.'"
that the Messenger of Allah (ﷺ) said: "Indeed, Allah chose Kinanah from the children of Isma'il, and He chose Quraish from Kinanah, and He chose Hashim from Quraish, and He chose me from Banu Hashim."
"Al-Abbas came to the Messenger of Allah (ﷺ), and it is as if he heard something, so the Prophet (ﷺ) stood upon the Minbar and said: 'Who am I?' They said: 'You are the Messenger of Allah, upon you be peace.' He said: 'I am Muhammad bin 'Abdullah bin 'Abdul-Muttalib, indeed Allah created the creation, and He put me in the best of them, then He made them into two groups, so He put me in the best group of them, then He made them into tribes, so He put me in the best of them in tribe, then He made them into houses, so He put me in the best of them in tribe and lineage.'"