It is necessary to make the intention for an obligatory fast before the break of dawn
❀ «عن حفصة رضي الله عنها عن النبى صلى الله عليه وسلم قال: من لم يجمع الصيام قبل الفجر، فلا صيام له»
It is narrated from Hafsah (may Allah be pleased with her) that the Prophet ﷺ said: “Whoever does not firmly resolve to fast before dawn, then there is no fast for him.”
Note: That is, it is necessary to make the intention for the fast before the break of dawn; the intention is sufficient at any part of the night, and making the intention with the tongue is not a condition.
This ruling applies to the fast of Ramadan, the makeup of Ramadan, and the fast of a vow. The intention for a voluntary fast is permissible even after the break of dawn.