I heard Messenger of Allah ﷺ 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.
سَمِعْتُ رَسُولَ اللَّهِ ﷺ يَقُولُ كَتَبَ اللَّهُ مَقَادِيرَ الْخَلاَئِقِ قَبْلَ أَنْ يَخْلُقَ السَّمَوَاتِ وَالأَرْضَ بِخَمْسِينَ أَلْفَ سَنَةٍ قَالَ وَعَرْشُهُ عَلَى الْمَاءِ