Sahih Bukhari Volume 009, Book 093, Hadith Number 501.

Narrated By 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.'"