The well-known genealogy of the Holy Prophet (S) is as follows: Muhammad (S), son of Abdullah son of Abdul Muttalib son of Hashim son of Abde Manaf son of Qusayy son of Kilab son of Marrah son of Lavi son of Ghalib son of Fahar son of Malik son of Nuzayr son of Kananah son of Khuzaimah son of Madrakah son of Ilyas son of Mazar son of Nazar son of Maad son of Adnan.
So far this genealogy is unanimously proven. There are disagreements from here to Prophet Adam (a).So I didn't mention that.