Abdullah bin Abbas reported,

The Messenger of Allah ﷺ said, "Whoever denies a single verse of the Quran has made the striking of his neck lawful. And whoever says, 'There is no god but Allah alone, with no partner, and that Muhammad is His servant and messenger,' no one has any way against him, unless he commits an offense for which a prescribed penalty must be carried out."

Ibn Majah 2539

Daif

حدثنا نصر بن علي الجهضمي حدثنا حفص بن عمر حدثنا الحكم بن أبان عن عكرمة

عن ابن عباس قال

قال رسول الله ﷺ من جحد آية من القرآن فقد حل ضرب عنقه ومن قال لا إله إلا الله وحده لا شريك له وأن محمدا عبده ورسوله فلا سبيل لأحد عليه إلا أن يصيب حدا فيقام عليه

ابن ماجه 2539ضعيف
Contents
Reference
Commentary
Ayat
Collection
Sunan Ibn Majah
Book
Legal punishments
Chapter
Establishing the legal punishments
Numbering
Darussalam 2539
Ibn Majah 2539