Abdullah ibn Amr ibn al-Aas said: “I heard the Messenger of Allah صلى الله عليه وسلم say: ‘Allah wrote the decrees of His creation fifty thousand years before He created the heavens and the earth, and He said: His Throne is above the water.'”
Sahih Muslim