Ikrimah narrates from Sayyiduna Abdullah bin Abbas (may Allah be pleased with him) regarding: "Do not consume one another's wealth unjustly, except through trade by mutual consent among you." [Al-Nisa: 29] After this verse was revealed, a man would feel it a sin to eat at anyone's house, so the verse in Surah al-Nur abrogated it: "There is no blame upon the blind, nor any blame upon the lame, nor any blame upon the sick, nor upon yourselves that you eat from your own houses," up to His words "or separately" [Al-Nur: 61]. In the same way, this is what is meant by His words: "There is no blame upon the blind, nor any blame upon the lame, nor any blame upon the sick, nor upon yourselves that you eat from your own houses, or the houses of your fathers, or the houses of your mothers, or the houses of your brothers, or the houses of your sisters, or the houses of your paternal uncles, or the houses of your paternal aunts, or the houses of your maternal uncles, or the houses of your maternal aunts, or those whose keys you possess, or that of your friend. There is no blame upon you whether you eat together or separately." [Al-Nur: 61] He said: A wealthy man would invite a poor man of his family to a meal, and would consider it a sin to eat with him, and the poor man would say: "He is more deserving of it than I am." So it was made lawful for them to eat food over which the name of Allah had been mentioned, and the food of the People of the Book was also made lawful.
(b) Ubaydullah bin Abdullah bin Utbah said regarding His words: "There is no blame upon the blind" [Al-Nur: 61]: "When the Muslims went out on campaign, they would give the keys of their houses to others and say: 'Eat whatever is in our houses,' but they would still feel it a sin, so Allah revealed this verse, granting them a concession."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الصداق / 14600