Sahih al-Bukhari, Book 59, Hadith 5 (Bukhari 3061)

Narrated Abu Huraira:

Allah's Messenger (ﷺ) said, "When Allah completed the creation, He wrote in His Book which is with Him on His Throne, "My Mercy overpowers My Anger."