Abdullah bin Umar reported,

The Messenger of Allah ﷺ said, "The month is twenty-nine days. Do not fast until you see it, and do not break your fast until you see it. If it is obscured from you, then complete thirty days."When the twenty-ninth night of Shaban came, Ibn Umar would look for the moon. If it was sighted, that settled the matter. If it was not sighted and there were no clouds or haze blocking the view, he would begin the next day not fasting. But if clouds or haze blocked the view, he would begin the day fasting.Yet Ibn Umar would break the fast along with the people and would not act on this calculation of his own.

Azami 4316

Sahih

عن ابن عمر، قال

قال رسول الله ﷺ: الشهر تسع وعشرون فلا تصوموا حتى ترواه، ولا تفطروا حتى ترواه، فإن غم عليكم فاقدروا له ثلاثين. قال: فكان ابن عمر إذا كان شعبان تسعا وعشرين نظر له، فإن رؤي فذاك، وإن لم ير ولم يحل دون نظره سحاب ولا قترة أصبح مفطرا، فإن حال دون منظره سحاب أو قترة أصبح صائما. قال: فكان ابن عمر يفطر مع الناس، ولا يأخذ بهذا الحساب.

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