The World Federation One Stop Fiqh

Ruling 1538

If someone makes an intention before the time of ṣubḥ prayers to fast the next day and he becomes intoxicated, and during the day he becomes sober, then based on obligatory precaution, he must complete the fast of that day and keep a qaḍāʾ fast for it as well.