Allaah (Glorified and Exalted be He) says: Indeed Allaah conferred a great favour on the believers when He sent among them a Messenger (Muhammad صلى الله عليه وسلم) from among themselves, reciting unto them His Verses (the Qur’aan), and purifying them (from sins by their following him), and instructing them (in) the Book (the Qur’aan) and Al-Hikmah [the wisdom and the Sunnah of the Prophet صلى الله عليه وسلم (i.e. his legal ways, statements, acts of worship)], while before that they had been in manifest error. According to certain Qira’at (recitation styles): the letter “ف” (Faa’) in ” من أنفسهم “ [translated above as ‘from among themselves’] is pronounced with Fat-hah (vowel point that sounds like “a”), thus meaning from the highest lineage among them.
It is reported in Saheeh Muslim on the authority of Waathilah ibn Al-Asqa` (may Allah be pleased with him) that he heard the Messenger of Allaah (peace be upon him) say: Verily, Allaah has chosen Kinanah from the Children of Ismaa’eel (Ishmael), and has chosen Quraysh from Kinaanah, and has chosen Banoo Haashim from Quraysh, and has chosen me from Banoo Haashim. It is also reported in the Two Saheeh (authentic) Books of Hadeeth (i.e. Al-Bukhaaree and Muslim) on the authority of ‘Aboo Soofyaan (may Allaah be pleased with him) that Heraclius, the Roman Emperor, asked him a number of questions about Prophet Muhammad (peace be upon him) including his lineage, saying, “What kind of lineage has he among you?“ To which ‘Aboo Soofyaan replied, “He is of a noble lineage (family) among us“ To this Heraclius said, “I asked you about his lineage among you and you said that he was of a noble lineage. Similarly, all the messengers are sent from the noblest lineage among their people.“ (According to the wording of Al-Bukhaaree)… read more here.