Abdullah bin Dailami, may Allah have mercy on him, who lived in Bayt al-Maqdis, says: Once I asked Sayyiduna Ibn Amr, may Allah be pleased with him, "O Abdullah bin Amr, have you heard the Prophet Muhammad, peace and blessings be upon him, say anything regarding the one who drinks alcohol?" He replied: "Yes! I heard the Prophet Muhammad, peace and blessings be upon him, say: Whoever drinks a sip of alcohol, his prayer is not accepted for forty days."
And I heard the Noble Prophet (peace and blessings be upon him) say that Allah Almighty created His creation in darkness, then on that day He cast His light upon them. Whoever received that light was guided, and whoever did not receive that light went astray. For this reason, I say that the pens have dried after writing according to Allah’s knowledge.
Hadith Referenceمسند احمد / مسند المكثرين من الصحابة / 6854