While I was taking part in a Ghazwa. I heard ʿAbdullah bin Ubai (bin Abi Salul) saying. "Don't spend on those who are with Messenger of Allah ﷺ, that they may disperse and go away from him. If we return (to Medina), surely, the more honorable will expel the meaner amongst them." I reported that (saying) to my uncle or to ʿUmar who, in his turn, informed the Prophet ﷺ of it. The Prophet ﷺ called me and I narrated to him the whole story. Then Messenger of Allah ﷺ sent for ʿAbdullah bin Ubai and his companions, and they took an oath that they did not say that. So Messenger of Allah ﷺ disbelieved my saying and believed his. I was distressed as I never was before. I stayed at home and my uncle said to me. "You just wanted Messenger of Allah ﷺ to disbelieve your statement and hate you." So Allah revealed (the Sura beginning with) 'When the hypocrites come to you.' (63.1) The Prophet ﷺ then sent for me and recited it and said, "O Zaid! Allah confirmed your statement."
فَسَمِعْتُ عَبْدَ اللَّهِ بْنَ أُبَىٍّ يَقُولُ لاَ تُنْفِقُوا عَلَى مَنْ عِنْدَ رَسُولِ اللَّهِ حَتَّى يَنْفَضُّوا مِنْ حَوْلِهِ وَلَوْ رَجَعْنَا مِنْ عِنْدِهِ لَيُخْرِجَنَّ الأَعَزُّ مِنْهَا الأَذَلَّ فَذَكَرْتُ ذَلِكَ لِعَمِّي أَوْ لِعُمَرَ فَذَكَرَهُ لِلنَّبِيِّ ﷺ فَدَعَانِي فَحَدَّثْتُهُ فَأَرْسَلَ رَسُولُ اللَّهِ ﷺ إِلَى عَبْدِ اللَّهِ بْنِ أُبَىٍّ وَأَصْحَابِهِ فَحَلَفُوا مَا قَالُوا فَكَذَّبَنِي رَسُولُ اللَّهِ ﷺ وَصَدَّقَهُ فَأَصَابَنِي هَمٌّ لَمْ يُصِبْنِي مِثْلُهُ قَطُّ فَجَلَسْتُ فِي الْبَيْتِ فَقَالَ لِي عَمِّي مَا أَرَدْتَ إِلَى أَنْ كَذَّبَكَ رَسُولُ اللَّهِ ﷺ وَمَقَتَكَ فَأَنْزَلَ اللَّهُ تَعَالَى {إِذَا جَاءَكَ الْمُنَافِقُونَ} فَبَعَثَ إِلَىَّ النَّبِيُّ ﷺ فَقَرَأَ فَقَالَ إِنَّ اللَّهَ قَدْ صَدَّقَكَ يَا زَيْدُ