Sahih Muslim , Book 50, Hadith 17 (In-Book) ⓘ
Abu Huraira reported that Allah's Messenger said: When Allah created the creation as He was upon the Throne, He put down in His Book: Verily, My mercy predominates My wrath.
حَدَّثَنَا قُتَيْبَةُ بْنُ سَعِيدٍ، حَدَّثَنَا الْمُغِيرَةُ، - يَعْنِي الْحِزَامِيَّ - عَنْ أَبِي الزِّنَادِ، عَنِ الأَعْرَجِ، عَنْ أَبِي هُرَيْرَةَ، أَنَّ النَّبِيَّ صلى الله عليه وسلم قَالَ " لَمَّا خَلَقَ اللَّهُ الْخَلْقَ كَتَبَ فِي كِتَابِهِ فَهُوَ عِنْدَهُ فَوْقَ الْعَرْشِ إِنَّ رَحْمَتِي تَغْلِبُ غَضَبِي " .
also referenced under: Hadith 2751 (Reference) & Book 37, Hadith 6626 (USC-MSA)