with respect to the lineage of prophet muhammad [pbuh], there are three versions: the first was authenticated by biographers and genealogists and states that muhammad’s genealogy has been traced to ‘adnan. the second is subject to controversies and doubt, and traces his lineage beyond ‘adnan back to abraham. the third version, with some parts definitely incorrect, traces his lineage beyond abraham back to adam [aws].
after this rapid review, now ample details are believed to be necessary.
the first part: muhammad bin ‘abdullah bin ‘abdul-muttalib (who was called shaiba) bin hashim, (named ‘amr) bin ‘abd munaf (called al-mugheera) bin qusai (also called zaid) bin kilab bin murra bin ka‘b bin lo’i bin ghalib bin fahr (who was called quraish and whose tribe was called after him) bin malik bin an-nadr (so called qais) bin kinana bin khuzaiman bin mudrikah (who was called ‘amir) bin elias bin mudar bin nizar bin ma‘ad bin ‘adnan. [ibn hisham 1/1,2; talqeeh fuhoom ahl al-athar, p. 5-6; rahmat-ul-lil'alameen 2/11-14,52]
the second part: ‘adnan bin add bin humaisi‘ bin salaman bin aws bin buz bin qamwal bin obai bin ‘awwam bin nashid bin haza bin bildas bin yadlaf bin tabikh bin jahim bin nahish bin makhi bin aid bin ‘abqar bin ‘ubaid bin ad-da‘a bin hamdan bin sanbir bin yathrabi bin yahzin bin yalhan bin ar‘awi bin aid bin deshan bin aisar bin afnad bin aiham bin muksar bin nahith bin zarih bin sami bin mazzi bin ‘awda bin aram bin qaidar bin ishmael son of abraham [aws]. [rahmat-ul-lil'alameen 2/14-17]
the third part: beyond abraham [aws] , ibn tarih (azar) bin nahur bin saru‘ bin ra‘u bin falikh bin abir bin shalikh bin arfakhshad bin sam bin noah [aws] , bin lamik bin mutwashlack bin akhnukh [who was said to be prophet idris (enoch) [aws]] bin yarid bin mahla’il bin qainan bin anusha bin shith bin adam [aws]. [ibn hisham 1/2-4; rahmat-ul-lil'alameen 2/18; khulasat as-siyar p.6]