When Abdullah bin Ubayy said, "Do not spend on those who are with the Messenger of Allah," and also said, "If we return to Medina," I informed the Prophet ﷺ about it. The Ansar blamed me, and Abdullah bin Ubayy swore that he had not said it. So I returned home and went to sleep.Then the Messenger of Allah ﷺ summoned me, and I came to him. He said, "Indeed, Allah has confirmed your truthfulness." And the verse was revealed, "They are the ones who say, 'Do not spend...'" the verse.Ibn Abu Zaida narrated from Amash, from Amr, from Ibn Abu Layla, from Zayd, from the Prophet ﷺ.
حدثنا آدم حدثنا شعبة عن الحكم قال سمعت محمد بن كعب القرظي قال سمعت
لما قال عبد الله بن أبي {لا تنفقوا على من عند رسول الله} وقال أيضا {لئن رجعنا إلى المدينة} أخبرت به النبي ﷺ فلامني الأنصار وحلف عبد الله بن أبي ما قال ذلك فرجعت إلى المنزل فنمت فدعاني رسول الله ﷺ فأتيته فقال إن الله قد صدقك ونزل {هم الذين يقولون لا تنفقوا} الآية وقال ابن أبي زائدة عن الأعمش عن عمرو عن ابن أبي ليلى عن زيد عن النبي ﷺ