It is narrated from Sayyiduna Abdullah bin Amr (may Allah be pleased with them both) that the Messenger of Allah (peace and blessings be upon him) said: "Allah finished with the decrees and the affairs of this world fifty thousand years before He created the heavens and the earth."
Al-Layth did not mention "the affairs of this world"; rather he narrated the words "the decrees of everything."
Hadith Referenceالمعجم الكبير للطبراني / باب العين / 13678