Abdullah bin Abbas reported,

The Prophet ﷺ said to al-Miqdad, "If a believing man conceals his faith among a people of disbelievers, then reveals his faith and you kill him, remember that you yourself used to conceal your faith in Mecca before."

Bukhari 6866

Sahih

وقال حبيب بن أبي عمرة عن سعيد

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

قال النبي ﷺ للمقداد إذا كان رجل مؤمن يخفي إيمانه مع قوم كفار فأظهر إيمانه فقتلته فكذلك كنت أنت تخفي إيمانك بمكة من قبل

البخاري 6866صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Blood money
Chapter
Allah's saying, "And whoever kills a believer intentionally, his recompense is Hell"
Numbering
Darussalam 6866
Bukhari 6866