It was narrated from Abu Hurairah that the Messenger of Allah (ﷺ) said: “When Allah created the universe, He decreed for Himself: ‘My mercy prevails over My wrath.’”

حَدَّثَنَا مُحَمَّدُ بْنُ عَبْدِ اللَّهِ بْنِ نُمَيْرٍ،‏‏‏‏ وَأَبُو بَكْرِ بْنُ أَبِي شَيْبَةَ،‏‏‏‏ قَالَا:‏‏‏‏ حَدَّثَنَا أَبُو خَالِدٍ الْأَحْمَرُ،‏‏‏‏ عَنْ ابْنِ عَجْلَانَ،‏‏‏‏ عَنْأَبِيهِ،‏‏‏‏ عَنْ أَبِي هُرَيْرَةَ،‏‏‏‏ قَالَ:‏‏‏‏ قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ:‏‏‏‏ إِنَّ اللَّهَ عَزَّ وَجَلَّ،‏‏‏‏ لَمَّا خَلَقَ الْخَلْقَ كَتَبَ بِيَدِهِ عَلَى نَفْسِهِ،‏‏‏‏ إِنَّ رَحْمَتِي تَغْلِبُ غَضَبِي .

Explanation
تفسير الحديث

This hadith highlights an aspect of God's attributes - His mercy that is greater and more encompassing than His wrath. The hadith states that when Allah created the creation, He wrote upon Himself - meaning by His will - that His mercy overcomes His anger. This signifies that God's mercy is vast and includes all His creatures, and that He is compassionate towards His servants, even in times of stress or worry, where His mercy seeks to encompass all. This hadith encourages believers to hope for God's mercy and reinforces the idea of turning to God for repentance and forgiveness, as it indicates that His mercy will prevail over His wrath. Therefore, humans should strive to attain this mercy through their actions, morals, and their relationship with their Lord. Overall, the hadith reflects the importance of mercy in Islam and how Allah wants His servants to embody mercy and forgiveness among one another as He, the Most High, does.

هذا الحديث يبرز جانباً من صفات الله -عز وجل-، وهو رحمة الله التي هي أكبر وأعظم من غضبه. الحديث يذكر أن الله عندما خلق الخلق، كتب على نفسه -أي بأرادته- أن رحمته ستغلب على غضبه. وقد يكون المقصود هنا أن رحمة الله شاملة وواسعة، تشمل جميع مخلوقاته، وأن الله رحيم بعباده، حتى في أوقات الضغوط أو الهموم، حيث تسعى رحمته إلى أن تنال من الجميع. . هذا الحديث يشجع المؤمنين على الأمل في رحمة الله ويعزز معنى التوجه إلى الله بالتوبة والمغفرة، لأنه يبين أن رحمة الله ستغلب على غضبه، فعلى الإنسان أن يسعى لتحصيل هذه الرحمة من خلال أعماله وأخلاقه وعلاقته بربه. في المجمل، الحديث يعكس جانباً من أهمية الرحمة في الدين الإسلامي وكيف أن الله يحب أن يتصف عباده بالرحمة والتسامح فيما بينهم كما يتصف هو -سبحانه وتعالى- بها.

Source: Sunan Ibn-e-Majah by Imam Muhammad bin Yazid Ibn Majah al-Qazvini