Zayd bin Arqam reported,

I was on a military expedition when I heard Abdullah bin Ubayy say, "Do not spend on those who are with the Messenger of Allah until they disperse from around him, and if we return from this expedition, the mightier among us will surely expel the lowlier."I mentioned this to my uncle, or to Umar, who relayed it to the Prophet ﷺ. The Prophet ﷺ summoned me, and I told him what I had heard. The Messenger of Allah ﷺ then sent for Abdullah bin Ubayy and his companions, but they swore they had said no such thing. So the Messenger of Allah ﷺ disbelieved me and believed him.I was overcome with a grief unlike any I had ever felt, and I confined myself to my house. My uncle said to me, "What did you intend by getting yourself disbelieved by the Messenger of Allah ﷺ and earning his displeasure?"Then Allah Most High revealed, "When the hypocrites come to you..." [Munafiqun 63:1]. The Prophet ﷺ sent for me and recited the verses, then said, "Indeed, Allah has confirmed your truthfulness, Zayd."

Bukhari 4900

Sahih

حدثنا عبد الله بن رجاء حدثنا إسرائيل عن أبي إسحاق

عن زيد بن أرقم قال

كنت في غزاة فسمعت عبد الله بن أبي يقول لا تنفقوا على من عند رسول الله حتى ينفضوا من حوله ولئن رجعنا من عنده ليخرجن الأعز منها الأذل فذكرت ذلك لعمي أو لعمر فذكره للنبي ﷺ فدعاني فحدثته فأرسل رسول الله ﷺ إلى عبد الله بن أبي وأصحابه فحلفوا ما قالوا فكذبني رسول الله ﷺ وصدقه فأصابني هم لم يصبني مثله قط فجلست في البيت فقال لي عمي ما أردت إلى أن كذبك رسول الله ﷺ ومقتك فأنزل الله تعالى {إذا جاءك المنافقون} فبعث إلي النبي ﷺ فقرأ فقال إن الله قد صدقك يا زيد

البخاري 4900صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Tafsir
Chapter
His saying, "When the hypocrites come to you they say, 'We bear witness that you are indeed the Messenger of Allah'" to "are liars"
Numbering
Darussalam 4900
Bukhari 4900