A man reported,

He narrated that he came to the Messenger of Allah ﷺ while he was sitting with a group, and he whispered to him, seeking permission to kill a man from among the hypocrites. The Messenger of Allah ﷺ spoke aloud, asking, "Does he not testify that there is no god but Allah?"The Ansari replied, "Yes, Messenger of Allah, but his testimony counts for nothing."The Messenger of Allah ﷺ asked, "Does he not testify that Muhammad is the Messenger of Allah?"He replied, "Yes, Messenger of Allah, but his testimony counts for nothing.""Does he not pray?"He replied, "Yes, Messenger of Allah, but his prayer counts for nothing."The Messenger of Allah ﷺ said, "Those are the ones Allah has forbidden me from killing."

Ahmad 23670

Sahih

حدثنا عبد الرزاق أخبرنا ابن جريج أخبرني ابن شهاب عن عطاء بن يزيد الليثي عن عبيد الله بن عدي بن الخيار أن

رجلا من الأنصار

حدثه أتى رسول الله ﷺ وهو في مجلس فساره يستأذنه في قتل رجل من المنافقين فجهر رسول الله ﷺ فقال أليس يشهد أن لا إله إلا الله قال الأنصاري بلى يا رسول الله ولا شهادة له قال رسول الله ﷺ أليس يشهد أن محمدا رسول الله قال بلى يا رسول الله ولا شهادة له أليس يصلي قال بلى يا رسول الله ولا صلاة له فقال رسول الله ﷺ أولئك الذين نهاني الله عنهم

أحمد 23670صحيح
Contents
Reference
Commentary
Ayat
Collection
Musnad Ahmad
Book
Ubaydullah bin Adi Ansari
Numbering
Darussalam 23670
Ahmad 23670