Abu Hurairah reported,

The Messenger of Allah ﷺ said, "When you see the crescent moon, begin fasting, and when you see it again, end your fasting. If it is obscured from your view, then complete thirty days of fasting."

Azami 4318

Sahih

عن أبي هريرة

أن رسول الله ﷺ قال: إذا رأيتم الهلال فصوموا، وإذا رأيتموه فأفطروا، فإن غم عليكم فصوموا ثلاثين يوما.

الأعظمي 4318صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Fasting
Chapter
Obligation of fasting, its virtue, and its rulings
Section
Obligation of fasting upon sighting Hilal and breaking the fast upon sighting it, and if it is obscured then completing the month as thirty days
Numbering
Jami al-Kamil 4318 (2nd edition)
Azami 4318