Sunan an-Nasa'i #2129
The Book of Fasting 22:40
Ibn 'Abbas narrated that the Messenger of Allah said:
"Fast when you see it, and stop fasting when you see it, and if clouds prevent you from seeing it, then complete the number, and do not fast ahead of Ramadan."