It is narrated from Hazrat Abu Huraira (may Allah be pleased with him) that the Holy Prophet (peace and blessings be upon him) said: Once, in the realm of souls, there was a debate between Hazrat Adam and Hazrat Musa (peace be upon them). Hazrat Musa (peace be upon him) said: O Adam! Allah created you with His own hand, made His angels prostrate to you, and settled you in Paradise, then you did this deed? O Musa, Allah chose you to speak with Him and revealed the Torah to you. Tell me, was I first or the command of Allah? He said: The command of Allah. In this way, Hazrat Adam (peace be upon him) prevailed over Hazrat Musa (peace be upon him).
Hadith Referenceمسند احمد / مسند المكثرين من الصحابة / 9989