Sahih Muslim , Book 37, Hadith 6626 (USC-MSA) ⓘ
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: Book 50, Hadith 17 (In-Book) & Hadith 2751 (Reference)