Abu Hurairah (RA) reported Allah's Messenger (ﷺ) as saying: Observe fast on sighting it (the new moon) and break (fast) on sighting it (the new moon), but if the sky is cloudy for you, then complete the number (of thirty).
Hadith ReferenceSahih Muslim / The Book of Fasting / Hadith: 1081