When ʿAbdullah bin Ubai said, "Do not spend on those who are with Messenger of Allah ﷺ," and also said, "If we return to Medina," I informed the Prophet ﷺ of his saying. The Ansar blamed me for that, and ʿAbdullah bin Ubai swore that he did not say. I returned to my house and slept. Messenger of Allah ﷺ then called me and I went to him. He said, "Allah has confirmed your statement." The Verse: "They are the one who say: Spend nothing......(63.7) was revealed.
عَبْدُ اللَّهِ بْنُ أُبَىٍّ لاَ تُنْفِقُوا عَلَى مَنْ عِنْدَ رَسُولِ اللَّهِ وَقَالَ أَيْضًا لَئِنْ رَجَعْنَا إِلَى الْمَدِينَةِ أَخْبَرْتُ بِهِ النَّبِيَّ ﷺ فَلاَمَنِي الأَنْصَارُ وَحَلَفَ عَبْدُ اللَّهِ بْنُ أُبَىٍّ مَا قَالَ ذَلِكَ فَرَجَعْتُ إِلَى الْمَنْزِلِ فَنِمْتُ فَدَعَانِي رَسُولُ اللَّهِ ﷺ فَأَتَيْتُهُ فَقَالَ إِنَّ اللَّهَ قَدْ صَدَّقَكَ وَنَزَلَ {هُمُ الَّذِينَ يَقُولُونَ لاَ تُنْفِقُوا} الآيَةَ وَقَالَ ابْنُ أَبِي زَائِدَةَ عَنِ الأَعْمَشِ عَنْ عَمْرٍو عَنِ ابْنِ أَبِي لَيْلَى عَنْ زَيْدٍ عَنِ النَّبِيِّ ﷺ