Sayyiduna Abdullah bin Abbas (may Allah be pleased with them both) said that the verse about the prohibition of wine was revealed (in this context): two tribes of the Ansar were drinking wine, and when the people became drunk they began to play about with one another. Then, when they came to their senses, a man saw marks on his face and head and said: "My brother so-and-so did this to me," although (before this) there had been no hatred in their hearts towards one another. So Allah Almighty revealed this verse: "O you who believe, wine, gambling, stone altars and divining arrows are only filth from the work of Satan, so avoid it so that you may succeed. Satan only wants to cause enmity and hatred between you through wine and gambling, and to hinder you from the remembrance of Allah and from prayer. So will you not desist?" [Surah al-Ma'idah: 90-91]. Then some over-scrupulous people said: It is filth, yet it was in the belly of so-and-so who was killed on the day of Uhud? So the verse was revealed: "There is no sin upon those who believe and do righteous deeds for what they ate, so long as they fear Allah, believe and do righteous deeds" [Surah al-Ma'idah: 93].
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الأشربة والحد فيها / 17327