(11) بَابُ قَوْلِ النَّبِيِّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: «إِذَا رَأَيْتُمُ الْهِلاَلَ فَصُومُوا وَإِذَا رَأَيْتُمُوهُ فَأَفْطِرُوا»
Narrated Abu Huraira:
The Prophet (ﷺ) or Abul-Qasim said, "Start fasting on seeing the crescent (of Ramadan), and give up fasting on seeing the crescent (of Shawwal), and if the sky is overcast (and you cannot see it), complete thirty days of Sha'ban."
Reference: Sahih al-Bukhari 1909
In-book reference: Book 30, Hadith 19
USC-MSA web (English) reference(deprecated numbering scheme): Vol. 3, Book 31, Hadith 133