وَمِنَ النَّاسِ مَن يَشْرِي نَفْسَهُ ابْتِغَاءَ مَرْضَاتِ اللَّهِ ۗ وَاللَّهُ رَءُوفٌ بِالْعِبَادِ
“And of mankind is he who would sell himself, seeking the pleasure of Allah. And Allah is full of Kindness to [His] slaves.”
This is the specific, well-known asbab al-nuzul: Q2:207 was revealed praising Suhayb al-Rumi RA for exactly what this event describes -- giving up his wealth to the Quraysh in exchange for safe passage to Madinah.