When Abdullah bin Ubayy said what he said, "Do not spend on those who are with the Messenger of Allah," or he said, "If we return to Madinah," I heard him and went to the Prophet ﷺ and reported it to him. Some men from the Ansar then blamed me. Abdullah came and swore he had not said it, so I returned home and went to sleep.The Messenger of Allah ﷺ sent for me, or word reached me, so I came to the Prophet ﷺ, and he said, "Indeed Allah has confirmed your truthfulness and excused you." Then this verse was revealed, "They are the ones who say, 'Do not spend on those who are with the Messenger of Allah.'" [Munafiqun 63:7].
حدثنا هاشم حدثنا شعبة عن الحكم قال سمعت محمد بن كعب القرظي قال سمعت
لما قال عبد الله بن أبي ما قال لا تنفقوا على من عند رسول الله أو قال لئن رجعنا إلى المدينة قال فسمعته فأتيت النبي ﷺ فذكرت ذلك له قال فلامني ناس من الأنصار قال وجاء هو فحلف ما قال ذاك فرجعت إلى المنزل فنمت قال فأتاني رسول الله ﷺ أو بلغني فأتيت النبي ﷺ فقال إن الله عز وجل قد صدقك وعذرك فنزلت هذه الآية {هم الذين يقولون لا تنفقوا على من عند رسول الله}