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.
bayhaqi:16890Abū Bakr Aḥmad b. ʿAlī al-Ḥāfiẓ al-Aṣbahānī > Abū ʿAmr Muḥammad b. Aḥmad b. Ḥamdān > al-Ḥasan b. Sufyān > Abū Bakr b. Abū Shaybah > Ḥafṣ b. Ghiyāth > Ashʿath > al-Shaʿbī > ʿAlī

[Machine] Ali said: "The apostate should be given three chances to repent, and if they revert back, they should be killed."  

البيهقي:١٦٨٩٠وَأَخْبَرَنَا أَبُو بَكْرٍ أَحْمَدُ بْنُ عَلِيٍّ الْحَافِظُ الْأَصْبَهَانِيُّ أنبأ أَبُو عَمْرٍو مُحَمَّدُ بْنُ أَحْمَدَ بْنِ حَمْدَانَ أنبأ الْحَسَنُ بْنُ سُفْيَانَ ثنا أَبُو بَكْرِ بْنُ أَبِي شَيْبَةَ ثنا حَفْصُ بْنُ غِيَاثٍ عَنْ أَشْعَثَ عَنِ الشَّعْبِيِّ قَالَ

قَالَ عَلِيٌّ ؓ يُسْتَتَابُ الْمُرْتَدُّ ثَلَاثًا فَإِنْ عَادَ قُتِلَ  


See similar narrations below:

Collected by Suyūṭī