Sahih al-Bukhari, Hadith 1906 ⓘ
Narrated `Abdullah bin `Umar: Allah's Messenger mentioned Ramadan and said, "Do not fast unless you see the crescent (of Ramadan), and do not give up fasting till you see the crescent (of Shawwal), but if the sky is overcast (if you cannot see it), then act on estimation (i.e. count Sha'ban as 30 days).
حَدَّثَنَا عَبْدُ اللَّهِ بْنُ مَسْلَمَةَ، عَنْ مَالِكٍ، عَنْ نَافِعٍ، عَنْ عَبْدِ اللَّهِ بْنِ عُمَرَ ـ رضى الله عنهما ـ أَنَّ رَسُولَ اللَّهِ صلى الله عليه وسلم ذَكَرَ رَمَضَانَ فَقَالَ " لاَ تَصُومُوا حَتَّى تَرَوُا الْهِلاَلَ، وَلاَ تُفْطِرُوا حَتَّى تَرَوْهُ، فَإِنْ غُمَّ عَلَيْكُمْ فَاقْدُرُوا لَهُ " .
also referenced under: Book 30, Hadith 16 (In-Book) & Volume 3, Book 31, Hadith 130 (USC-MSA)