The Messenger of Allah (may Allah bless him and grant him peace) said:

“He who does not determine to fast before dawn does not fast.”

[Abu Dawud]

Was Salam