Sunan an-Nasa'i, Book 22, Hadith 41 (Nasa'i 2135)

It was narrated that Ibn 'Abbas said:

"The Messenger of Allah said: "The Messenger of Allah said: Do not fast before Ramadan. Fast when you see it and stop fasting when you see it, and if clouds prevent you from seeing it, then complete Thirty (Days)."'