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 fast thirty days."
حدثنا أبو كامل حدثنا إبراهيم حدثنا ابن شهاب عن سعيد بن المسيب
قال رسول الله ﷺ إذا رأيتم الهلال فصوموا وإذا رأيتموه فأفطروا فإن غم عليكم فصوموا ثلاثين يوما