Sunan Ibn Majah #2539 · The Chapters on Legal Punishments

Sunan Ibn MajahIt was narrated from Ibn'Abbas that the Messenger of Allah said
Sunan Ibn Majah · Book 20 · The Chapters on Legal Punishments
Sunan Ibn Majah · كتاب 20 · كتاب الحدود
“Whoever denies a Verse of the Qur'an, it is permissible to strike his neck (i.e., execute him) Whoever says, Lailaha illallahu wahduhu la sharika lahu, wa anna Muhammadan 'abduhu wa rasuluhu (None has the right to be worshiped but Allah (SWT) alone, and Muhammad (ﷺ) is His slave and Messenger), no one has any was of harming him, unless he (does something which) deserves a legal punishment, and it is carried out on him.”
حَدَّثَنَا نَصْرُ بْنُ عَلِيٍّ الْجَهْضَمِيُّ، حَدَّثَنَا حَفْصُ بْنُ عُمَرَ، حَدَّثَنَا الْحَكَمُ بْنُ أَبَانَ، عَنْ عِكْرِمَةَ، عَنِ ابْنِ عَبَّاسٍ، قَالَ قَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم ‏
"‏ مَنْ جَحَدَ آيَةً مِنَ الْقُرْآنِ فَقَدْ حَلَّ ضَرْبُ عُنُقِهِ وَمَنْ قَالَ لاَ إِلَهَ إِلاَّ اللَّهُ وَحْدَهُ لاَ شَرِيكَ لَهُ وَأَنَّ مُحَمَّدًا عَبْدُهُ وَرَسُولُهُ فَلاَ سَبِيلَ لأَحَدٍ عَلَيْهِ إِلاَّ أَنْ يُصِيبَ حَدًّا فَيُقَامَ عَلَيْهِ ‏"‏ ‏.‏
Reference : Sunan Ibn Majah 2539In-book reference : Book 20, Hadith 7