It is narrated from Abdullah (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: The month can also be of twenty-nine days. Do not begin fasting until you see the new moon, and do not break the fast until you see (the Shawwal) moon. And if the sky is cloudy, then complete the count to thirty.
Hadith Referenceمسند الإمام الشافعي / كتاب الصيام / 608
Hadith Takhrijاخرجه البخاري، الصوم، باب قول النبي صلى الله عليه وسلم اذا رأيتم الهلال...... الخ (1907)، ومسلم، الصيام، باب وجوب صوم رمضان الرؤية الهلال و الفطر لرؤية الهلال..... الخ (1080)۔