It was narrated from Hafsah that the Prophet said:
"Whoever does not intend to fast before dawn comes, should not fast." (Daif)