"Allah decreed the measures fifty-thousand years before He created the Heavens and the earth."

Jami` at-Tirmidhi Book 32, Hadith 24