Sayyiduna Abdullah bin Mas'ud (may Allah be pleased with him) said: When the prohibition of wine was revealed, the Jews said: Did your brothers who died (before this) not drink it too? So Allah, the Mighty and Majestic, revealed this verse: "There is no sin upon those who believe and do righteous deeds for what they ate (and drank)" [Surah al-Ma'idah: 93]. The Messenger of Allah (peace and blessings be upon him) said: "It was said to me: You are one of them."
Hadith Referenceالمعجم الكبير للطبراني / باب العين / 9975