Sahih Muslim | Book 6 | Hadith Number 2380

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 it on sighting it. But if (due to clouds) the actual position of the month is concealed from you, you should then count thirty (days).