Abu Hurairah or Abu Saeed reported,

The Prophet ﷺ said, "Adam and Musa, peace be upon them, debated with each other. Musa said to Adam, 'You are Adam, whom Allah created with His own hand, into whom He breathed of His spirit,'" — I think he said, "'and He commanded the angels and they prostrated to you. Did you bring your descendants out of Paradise?'Adam replied, 'Do you find it written upon me?'Musa said, 'Yes.'So Adam outargued Musa."

Azami 1063

Sahih

عن أبي هريرة أو أبي سعيد

عن النبي ﷺ قال: احتج آدم وموسى صلى الله عليهما، فقال موسى لآدم: أنت آدم الذي خلقك الله بيده، ونفخ فيك من روحه- أحسبه قال: وأمر الملائكة فسجدوا لك- أخرجت ذريتك من الجنة؟ قال: فتجده علي مكتوبا؟ قال: نعم، فحج آدم موسى.

الأعظمي 1063صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Faith
Chapter
Belief in the divine decree and predestination
Section
Hajjaj between Adam and Musa, peace be upon them
Numbering
Jami al-Kamil 1063 (2nd edition)
Azami 1063