Sahih Muslim | Book 6 | Hadith Number 2379

Narrated by Abu Huraira
Abu Huraira reported Allah's Messenger (may peace be upon him) 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).