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.
quran:5:54

O you who have believed, whoever of you should revert from his religion - Allah will bring forth ˹in place of them˺ a people He will love and who will love Him ˹who are˺ humble toward the believers, powerful against the disbelievers; they strive in the cause of Allah and do not fear the blame of a critic. That is the favor of Allah; He bestows it upon whom He wills. And Allah is all-Encompassing and Knowing.  

O you who believe, whoever of you apostatises (read either yartadid, with separation ˹of the two dāl letters˺, or yartadd, with assimilation ˹of one of the dāl letters with the other˺), turns back, from his religion, to disbelief — this is a notification of what God knew would happen, for some of them apostatised upon the death of the Prophet (s) — God will assuredly bring, in their place, a people whom He loves and who love Him: the Prophet (s) said, ‘They are people like him’, and he pointed to Abū Mūsā al-Ash‘arī, as reported by al-Hākim ˹al-Naysābūrī˺ in his Sahīh; humble, sympathetic, towards believers, stern, severe, towards disbelievers, struggling in the way of God, and fearing not the reproach of any reproacher, therein, in the way that the hypocrites fear the reproach of the disbelievers. That, description mentioned, is God’s bounty; He gives it to whom He will; and God is Embracing, of abundant bounty, Knowing, of those who deserve it.
القرآن:٥:٥٤

يَا أَيُّهَا الَّذِينَ آمَنُوا مَنْ يَرْتَدَّ مِنْكُمْ عَنْ دِينِهِ فَسَوْفَ يَأْتِي اللَّهُ بِقَوْمٍ يُحِبُّهُمْ وَيُحِبُّونَهُ أَذِلَّةٍ عَلَى الْمُؤْمِنِينَ أَعِزَّةٍ عَلَى الْكَافِرِينَ يُجَاهِدُونَ فِي سَبِيلِ اللَّهِ وَلَا يَخَافُونَ لَوْمَةَ لَائِمٍ ۚ ذَٰلِكَ فَضْلُ اللَّهِ يُؤْتِيهِ مَنْ يَشَاءُ ۚ وَاللَّهُ وَاسِعٌ عَلِيمٌ  

(يا أيها الذين آمنوا من يرتد) بالفك والإدغام يرجع (منكم عن دينه) إلى الكفر إخبار بما علم الله وقوعه وقد ارتد جماعة بعد موت النبي ﷺ (فسوف يأتي الله) بدلهم (بقوم يحبهم ويحبونه) قال ﷺ : "" هم قوم هذا وأشار إلى أبي موسى الأشعري "" رواه الحاكم في صحيحه (أذلة) عاطفين (على المؤمنين أعزة) أشداء (على الكافرين يجاهدون في سبيل الله ولا يخافون لومة لائم) فيه كما يخاف المنافقون لوم الكفار (ذلك فضل الله يؤتيه من يشاء والله واسع) كثير الفضل (عليم) بمن هو أهله، ونزل لما قال ابن سلام يا رسول الله إن قومنا هجرونا.