Jabir bin Abdullah reported,

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

Azami 4323

Sahih

عن جابر بن عبد الله، قال

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

الأعظمي 4323صحيح
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 4323 (2nd edition)
Azami 4323