Sahih Muslim – Hadith No : 2568

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).

Hadith In Arabic Text :

وحدثنا عبيد الله بن معاذ، حدثنا أبي، حدثنا شعبة، عن محمد بن زياد، قال سمعت أبا هريرة، – رضى الله عنه – يقول قال رسول الله صلى الله عليه وسلم ‏”‏ صوموا لرؤيته وأفطروا لرؤيته فإن غمي عليكم الشهر فعدوا ثلاثين ‏”‏ ‏.‏

Chapter : The Book of Fasting – كتاب الصيام