Sunan an-Nasa'i, Book 22, Hadith 244 (Nasa'i 2338)

It was narrated from Hafsah that the Prophet said:

"Whoever does not intend to fast before dawn comes, should not fast." (Daif)