Sunan an-Nasa'i, Book 22, Hadith 242 (Nasa'i 2336)

It was narrated from Hafsah that the Prophet said:

"Whoever does not have the intention of fasting before dawn, then there is no fast for him."(Daif)