Sahih Muslim, Book 50, Hadith 19 (Muslim 6891)

Abu Huraira reported Allah's Messenger (ﷺ) as saying:

When Allah created the creation, He ordained for Himself and this document is with Him: Verily, My mercy predominates Mv wrath.