كتاب أحوال القيامة وبدء الخلق
28  
Events of the Day of Resurrection and the Beginning of Creation
(9a)
Chapter: The Beginning of Creation, and Mention of the Prophets - Section 1
(9)
باب بدءالخلق وذكر الأنبياء عليهم الصلاة والسلام - الفصل الأول
Mishkat al-Masabih 5700
Abu Huraira told that he heard God's messenger say God most high had inscribed a document before bringing the creation into being, "My mercy has preceded my anger," and that it is written in His presence above the throne. (Bukhari and Muslim.)
وَعَنْ أَبِي هُرَيْرَةَ قَالَ: سَمِعْتُ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ يَقُولُ: " إِنَّ اللَّهَ تَعَالَى كَتَبَ كِتَابًا قَبْلَ أَنْ يَخْلُقَ الْخَلْقَ: إِنَّ رَحْمَتِي سَبَقَتْ غَضَبِي فَهُوَ مَكْتُوب عِنْده فَوق الْعَرْش ". مُتَّفق عَلَيْهِ
  مُتَّفَقٌ عَلَيْهِ   (الألباني) حكم   :
Reference : Mishkat al-Masabih 5700
In-book reference : Book 28, Hadith 171