The Messenger of Allah ﷺ said, "Musa said, 'My Lord, show us Adam, the one who expelled us and himself from Paradise.' So Allah showed him Adam, and Musa said, 'Are you our father Adam?'Adam replied, 'Yes.'Musa said, 'Are you the one into whom Allah breathed of His spirit, taught the names of all things, and commanded the angels to prostrate before, which they did?'Adam answered, 'Yes.'Musa said, 'Then what drove you to expel us and yourself from Paradise?'Adam said to him, 'And who are you?'Musa replied, 'I am Musa.'Adam said, 'You are the prophet of the Children of Israil, the one to whom Allah spoke from behind a veil, placing no messenger from His creation between you and Him?'Musa said, 'Yes.'Adam said, 'Did you not find that this was written in the Book of Allah before I was created?'Musa replied, 'Yes.'Adam said, 'Then why do you blame me for something that Allah Almighty had already decreed before me?'"The Messenger of Allah ﷺ said at that point, "So Adam prevailed over Musa in argument, Adam prevailed over Musa in argument."
حدثنا أحمد بن صالح قال حدثنا ابن وهب قال أخبرني هشام بن سعد عن زيد بن أسلم عن أبيه أن
قال رسول الله ﷺ إن موسى قال يا رب أرنا آدم الذي أخرجنا ونفسه من الجنة فأراه الله آدم فقال أنت أبونا آدم فقال له آدم نعم قال أنت الذي نفخ الله فيك من روحه وعلمك الأسماء كلها وأمر الملائكة فسجدوا لك قال نعم قال فما حملك على أن أخرجتنا ونفسك من الجنة فقال له آدم ومن أنت قال أنا موسى قال أنت نبي بني إسرائيل الذي كلمك الله من وراء الحجاب لم يجعل بينك وبينه رسولا من خلقه قال نعم قال أفما وجدت أن ذلك كان في كتاب الله قبل أن أخلق قال نعم قال فيم تلومني في شيء سبق من الله تعالى فيه القضاء قبلي قال رسول الله ﷺ عند ذلك فحج آدم موسى فحج آدم موسى
[Its isnad is hasan] Ibn Khuzayma narrated it in Tawhid, p. 143, 144, from the hadith of Abdullah ibn Wahb, through this route.