Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
suyuti:16649a
Request/Fix translation

  

السيوطي:١٦٦٤٩a

"كَتَبَ رَبُّكُمْ عَلَى نَفْسِهِ بِيَدِهِ قَبْلَ أنْ يَخْلُقَ الْخَلْقَ: رَحْمَتِى سَبَقَتْ غَضَبِى".  

[هـ] ابن ماجة عن أبي هريرة

See similar narrations below:

Collected by Ibn Mājah
ibnmajah:189Muḥammad b. Yaḥyá > Ṣafwān b. ʿĪsá > Ibn ʿAjlān from his father > Abū Hurayrah

"The Messenger of Allah said: 'Your Lord wrote for Himself with His Own Hand before He created the creation: "My mercy precedes My wrath."  

ابن ماجة:١٨٩حَدَّثَنَا مُحَمَّدُ بْنُ يَحْيَى حَدَّثَنَا صَفْوَانُ بْنُ عِيسَى عَنِ ابْنِ عَجْلاَنَ عَنْ أَبِيهِ عَنْ أَبِي هُرَيْرَةَ قَالَ

قَالَ رَسُولُ اللَّهِ ﷺ كَتَبَ رَبُّكُمْ عَلَى نَفْسِهِ بِيَدِهِ قَبْلَ أَنْ يَخْلُقَ الْخَلْقَ رَحْمَتِي سَبَقَتْ غَضَبِي