بسم الله الرحمن الرحيم
Q: Indeed some people have been tested with some wicked things such as drinking liquor or abusing narcotics, as a result when they break their fast during sunset they routinely indulge in these things til midnight, then they go to sleep in order to partake in the predawn meal during the last portion of the night and continue their fast (that following day), thus what is the ruling as it relates to their fast? And what is your advice in order that Allah may guide them?
A: As for the ruling concerning their fast, it is valid. However we are very saddened by them falling into this issue and they are Muslims. Likewise they know that intoxicants is the mother of all wickedness and a key to every evil as it undoubtedly is prohibited by the Book, the Sunnah and consensus of the Muslims. Therefore my advice to them is to have taqwa of Allah, to fear His punishment, and to abandon this forbidden matter. Whoever repents to Allah, Allah will accept his repentance, as the doors to repentance are open and Ramadan is a blessed opportunity to forego this prohibited action and to seek repentance from it. And Allah is the grantor of success.
Translated by Najeeb ibn Yusuf Al Anjelesi
Source: فتاوى في أحكام الصيام