Sahih Bukhari | Volume 9 | 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.'"