Sahih Muslim, Book 50, Hadith 17 (Muslim 6889)

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.