It is narrated from Sayyiduna Abdullah bin Abbas (may Allah be pleased with them both) that the Companions of the Messenger of Allah (peace and blessings be upon him) (may Allah be pleased with them) used to buy cheap food and give it in charity, so Allah, the Mighty and Majestic, revealed this verse to His Prophet (peace and blessings be upon him): "O you who believe, spend from the good things you have earned", to the end of the verse.