Sahih Muslim #1081 c
The Book of Fasting 13:22
Abu Huraira reported Allah's Messenger (ﷺ) 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).