Jami` at-Tirmidhi, Book 32, Hadith 24 (Tirmidhi 2224)

Abdullah bin 'Amr narrated that the Messenger of Allah (s.a.w) said:

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