The Prophet (ﷺ) said, "When Allah created the Creation, He wrote in His Book--and He wrote…

Sahih al-Bukhari Book 97 Hadith 33

Sahih al-Bukhari #7404

Oneness, Uniqueness of Allah (Tawheed) 97:33

Narrated Abu Huraira:

The Prophet (ﷺ) said, "When Allah created the Creation, He wrote in His Book--and He wrote (that) about Himself, and it is placed with Him on the Throne--'Verily My Mercy overcomes My Anger.'"

Chapter: “…And Allah warns you against Himself…”

Grade: Sahih