Abu Hurairah reported,

The Prophet ﷺ said, or perhaps Abu Qasim ﷺ said, "Fast when you see it and break your fast when you see it. If it is hidden from you, then complete the count of Shaban as thirty days."

Bukhari 1909

Sahih

حدثنا آدم حدثنا شعبة حدثنا محمد بن زياد قال سمعت

أبا هريرة رضي الله عنه يقول

قال النبي ﷺ أو قال قال أبو القاسم ﷺ صوموا لرؤيته وأفطروا لرؤيته فإن غبي عليكم فأكملوا عدة شعبان ثلاثين

البخاري 1909صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Fasting
Chapter
Prophet ﷺ saying, "When you see the Hilal, fast, and when you see it, break your fast"
Numbering
Darussalam 1909
Bukhari 1909