The Messenger of Allah ﷺ said, "When Allah created Adam, He wiped his back, and every soul that He would create from his offspring until the Day of Resurrection fell from his back. He placed between the eyes of each person a glimmer of light, then presented them to Adam.Adam asked, 'My Lord, who are these?'He answered, 'These are your offspring.'Adam saw among them a man whose glimmer between his eyes amazed him, so he asked, 'My Lord, who is this?'He answered, 'This is a man from the last of the nations among your offspring, called Dawud.'Adam asked, 'My Lord, how long have You made his lifespan?'He answered, 'Sixty years.'Adam said, 'My Lord, increase his lifespan by forty years from mine.'When Adam's lifespan was complete, the Angel of Death came to him. Adam asked, 'Are there not still forty years remaining of my life?'He answered, 'Did you not give them to your son Dawud?'Adam denied it, so his offspring deny. Adam forgot, so his offspring forget. Adam erred, so his offspring err."
قال رسول الله ﷺ: لما خلق الله آدم مسح ظهره فسقط من ظهره كل نسمة هو خالقها من ذريته إلى يوم القيامة وجعل بين عيني كل إنسان منهم وبيصا من نور، ثم عرضهم على آدم فقال: أي رب من هؤلاء؟ قال: هؤلاء ذريتك فرأى رجلا منهم فأعجبه وبيص ما بين عينيه فقال: أي رب من هذا؟ فقال: هذا رجل من آخر الأمم من ذريتك يقال له داود فقال: رب كم جعلت عمره؟ قال: ستين سنة قال: أي رب زده من عمري أربعين سنة، فلما قضى عمر آدم جاءه ملك الموت فقال: أو لم يبق من عمري أربعون سنة؟ قال: أو لم تعطها ابنك داود؟ قال: فجحد آدم فجحدت ذريته، ونسي آدم فنسيت ذريته وخطئ آدم فخطئت ذريته.
Tirmidhi (3080) narrated it from Abd bin Humayd, who said, "Abu Naeem told us, Hisham bin Saad told us, from Zayd bin Aslam, from Abu Salih, from Abu Hurairah," and he mentioned it. Its isnad is hasan because of Hisham bin Saad, for there is disagreement about him, though his hadith is hasan.Abu Yaala (6580) also narrated this hadith from Uqba bin Mukram, from Amr bin Muhammad, from Ismail bin Rafi, from Maqburi, from Abu Hurairah, mentioning it in similar fashion, except that he added additions beyond the aforementioned narration of Abu Salih, additions which Ismail bin Rafi alone transmitted from Abu Hurairah. These are his words ﷺ, "Allah created Adam from dust, then made him clay, then left him until he became sticky black mud, at which point He shaped him and gave him form, then left him until he became like fired pottery. Iblis would pass by him and say, 'You have indeed been created for some great purpose.' Then Allah breathed His spirit into him, and the first thing the spirit moved through was his eyesight and his nostrils..." the hadith continues, then it mentions Adam's sneezing and his greeting to the angels, up to the end of the story.The one who alone transmitted this addition is Ismail bin Rafi. Ahmad said, "Daif, his hadith is munkar." Abu Hatim said, "His hadith is munkar." Nasai, Daraqutni, and Ali bin Junayd said, "Matruk (abandoned)," and a group of scholars judged him daif. Therefore this addition is munkar. And Allah knows best.