The Messenger of Allah ﷺ said, "Adam and Musa held a dispute.Musa said to him, 'You are Adam, the one who led people astray and caused them to be driven out of the Garden down to the earth.'Adam said to him, 'And you are Musa, the one whom Allah gave knowledge of all things and chose above all people with His messages.'Musa said, 'Yes.'Adam said, 'Do you blame me for something that was written that I would do before I was even created?'"So Adam prevailed over Musa in the argument, may Allah's blessings and peace be upon them both.
وبإسناده قال رسول الله ﷺ تحاج آدم وموسى فقال له موسى أنت آدم الذي أغويت الناس وأخرجتهم من الجنة إلى الأرض فقال له آدم أنت موسى الذي أعطاك الله علم كل شيء واصطفاك على الناس برسالاته قال نعم قال أتلومني على أمر كان قد كتب علي أن أفعل من قبل أن أخلق قال فحاج آدم موسى صلى الله عليهما وسلم
This hadith is also sahih due to the authenticity of the Sahifa, and it appears in the standalone Sahifa under number 45. Bukhari did not narrate it through this route. Muslim narrated it through this route [8:300, 2/51, Bulaq edition], but he did not mention its wording and instead referred to the narrations that preceded it through other routes. It has already appeared with the same meaning, through many different routes from Abu Hurairah, numbers 7381, 7578, 7579, 7623, 7624, 7843. Bukhari also narrated it through many different routes, 6:319, 8:329, 330, and 11:441, 13:398, Fath edition.Al-Hafiz said in al-Fath, 11:442, Ibn Abdul-Barr said, This hadith is firmly established by consensus. A group of the Tabiin narrated it from Abu Hurairah, and it was also narrated from the Prophet ﷺ through other routes, transmitted by trustworthy and reliable imams. Al-Hafiz then went on at length listing its narrations and the compilers who recorded them, among them the narration of Hammam bin Munabbih, which Muslim recorded.As for his statement at the end, "Adam argued with (fa-haaja) Musa," meaning he disputed with him and overcame him in argument. This is a use of the pattern faaala (فاعل) outside its normal sense, meaning simply faala (فعل), that is, to do something. This is what is established here in every printed and manuscript copy of the Musnad and in Jami al-Masanid, while in the standalone Sahifa it reads, "Adam argued with (fa-hajja) Musa," using the single form (fa-aal without the extra letter). This latter reading agrees with most of the other narrations.