Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
ahmad:9159Muḥammad b. Sābiq > Sharīk > al-Aʿmash > Abū Ṣāliḥ > Abū Hurayrah

[Machine] From the Prophet ﷺ , he said: "Indeed, Allah wrote a book with His own hand for Himself before creating the heavens and the earth. He placed it beneath His throne, in it is the mercy that precedes my anger."  

أحمد:٩١٥٩حَدَّثَنَا مُحَمَّدُ بْنُ سَابِقٍ حَدَّثَنَا شَرِيكٌ عَنِ الْأَعْمَشِ عَنْ أَبِي صَالِحٍ عَنْ أَبِي هُرَيْرَةَ

عَنِ النَّبِيِّ ﷺ قَالَ إِنَّ اللهَ ﷻ كَتَبَ كِتَابًا بِيَدِهِ لِنَفْسِهِ قَبْلَ أَنْ يَخْلُقَ السَّمَوَاتِ وَالْأَرْضَ فَوَضَعَهُ تَحْتَ عَرْشِهِ فِيهِ رَحْمَتِي سَبَقَتْ غَضَبِي