the Prophet said: "Whoever did not decide to fast before Fajr then there is no fast for him."
Jami` at-Tirmidhi Book 8, Hadith 49