Sahih Muslim #2653 b
The Book of Destiny 46:27
Abdullah b. 'Amr b. al-'As reported:
I heard Allah's Messenger (ﷺ) 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.