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:16899Abū Zakariyyā b. Abū Isḥāq al-Muzakkī

[Machine] In His saying "Except for those who are compelled while their hearts are at peace with faith" [An-Nahl 106]. Allah (swt) said: Whoever disbelieves after believing, then upon him is wrath from Allah and he will have a great punishment. But as for one who is compelled [to disbelief] while his heart is at rest with faith - but he opens his mouth [to declare disbelief] while his heart is steadfast with faith - then upon him is no blame. Indeed, Allah is Forgiving and Merciful; He takes the souls at the time of their death and those that do not die [He takes] during their sleep.  

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

فِي قَوْلِهِ {إِلَّا مَنْ أُكْرِهَ وَقَلْبُهُ مُطْمَئِنٌّ بِالْإِيمَانِ} [النحل 106] قَالَ أَخْبَرَ اللهُ سُبْحَانَهُ إِنَّهُ مَنْ كَفَرَ بَعْدَ إِيمَانِهِ فَعَلَيْهِ غَضَبٌ مِنَ اللهِ وَلَهُ عَذَابٌ عَظِيمٌ فَأَمَّا مَنْ أُكْرِهَ فَتَكَلَّمَ بِلِسَانِهِ وَخَالَفَهُ قَلْبُهُ بِالْإِيمَانِ لِيَنْجُوَ بِذَلِكَ مِنْ عَدُوِّهِ فَلَا حَرَجَ عَلَيْهِ إِنَّ اللهَ سُبْحَانَهُ إِنَّمَا يَأْخُذُ الْعِبَادَ بِمَا عَقَدَتْ عَلَيْهِ قُلُوبُهُمْ