Sayyiduna Zayd bin Arqam (may Allah be pleased with him) said: When Abdullah bin Ubayy said, "Do not spend on the companions of the Messenger of Allah until they disperse," and likewise said, "If we return to Madinah, the more honourable will surely expel the more humble," I informed the Messenger of Allah (peace and blessings be upon him) of it. Then I came to him, and he (peace and blessings be upon him) said: "Allah has confirmed your truthfulness and excused you." And the Qur'an was revealed: "They are the ones who say: Do not spend on those who are with the Messenger of Allah (peace and blessings be upon him) so that they disperse." [Surah al-Munafiqun: 7]
Hadith Referenceالسنن الكبرى للبيهقي / كتاب السير / 17865