Sunan an-Nasa'i #2118
The Book of Fasting 22:29
Narrated It was narrated that Abu Hurairah said:
:"The Messenger of Allah said: 'Fast when you see it and stop fasting when you see it, and if it is obscured from you (too cloudy), then count it as thirty (days).'"