Messenger of Allah ﷺ said, "When Allah created the creations, He wrote with Him on His Throne: 'My Mercy has preceded My Anger."
أَنَّ رَسُولَ اللَّهِ ﷺ قَالَ لَمَّا قَضَى اللَّهُ الْخَلْقَ كَتَبَ عِنْدَهُ فَوْقَ عَرْشِهِ إِنَّ رَحْمَتِي سَبَقَتْ غَضَبِي