There is not upon those who believe and do righteousness [any] blame concerning what they have eaten [in the past] if they [now] fear Allāh and believe and do righteous deeds, and then fear Allāh and believe, and then fear Allāh and do good; and Allāh loves the doers of good.
There is no sin on those who have faith in Allah, and do good actions to gain closeness to Him, for drinking alcohol before it was made unlawful, as long as they now stay away from it, being mindful of Allah’s anger, having faith in Him and doing good actions, and then increase in their awareness of Allah until they worship Him as if they see Him. Allah loves those who worship Him as if they see Him, because they are aware that Allah is always watching them. This leads believers to improve their actions.