Sahih Muslim Book 33, Hadith Number 6416.

Chapter : The excellence of arguments between Adam and Moses (Allah be pleased with both of them).

Abdullah b. ‘Amr b. al-‘As reported: I heard Allah’s Messenger (may peace be upon him) as saying: Allah ordained the measures (of quality) of the creation fifty thousand years before He created the heavens and the earth, as His Throne was upon water.