Jami` at-Tirmidhi 3050
جامع الترمذي#3050SahihNarrated Al-Bara:"A man among the Companions of the Prophet (ﷺ) died before Khamr had been made unlawful. So when Khamr was made unlawful, some men said: 'How about our companions who died while drinking Khamr?' So (the following) was revealed: Those who believe and do righteous good deeds, there is no sin on them for what the ate, if they have Taqwa and perform good (5:)
Scholarly Authentication
We show the most cautious grade (weakest-wins) as the overall label. Individual scholars graded it as follows:
Ahmad Muhammad ShakirSahih Lighairihi
Al-AlbaniSahih
Bashar Awad MaaroufHasan Sahih
Zubair Ali ZaiSahih
In-book reference: 47:102