Abu Hurairah reported,

The Messenger of Allah ﷺ said, "Adam and Musa argued with one another.Musa said to him, 'You are Adam, whose sin caused you to be expelled from Paradise.'Adam replied to him, 'You are Musa, whom Allah chose with His messages and His direct speech. Yet you blame me for a matter that was decreed upon me before I was even created.'"The Messenger of Allah ﷺ said, "So Adam prevailed over Musa in the argument," repeating it twice.

Bukhari 3409

Sahih

حدثنا عبد العزيز بن عبد الله حدثنا إبراهيم بن سعد عن ابن شهاب عن حميد بن عبد الرحمن أن

أبا هريرة قال

قال رسول الله ﷺ احتج آدم وموسى فقال له موسى أنت آدم الذي أخرجتك خطيئتك من الجنة فقال له آدم أنت موسى الذي اصطفاك الله برسالاته وبكلامه ثم تلومني على أمر قدر علي قبل أن أخلق فقال رسول الله ﷺ فحج آدم موسى مرتين

البخاري 3409صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Hadiths of the prophets
Chapter
Death of Musa, and mention of him thereafter
Numbering
Darussalam 3409
Bukhari 3409