Hadith
حَدَّثَنَا أَبُو مَرْوَانَ الْعُثْمَانِيُّ، حَدَّثَنَا إِبْرَاهِيمُ بْنُ سَعْدٍ، عَنِ الزُّهْرِيِّ، عَنْ سَعِيدِ بْنِ الْمُسَيَّبِ، عَنْ أَبِي هُرَيْرَةَ، قَالَ: قَالَ رَسُولُ اللَّهِ ـ صلى الله عليه وسلم ـ " إِذَا رَأَيْتُمُ الْهِلاَلَ فَصُومُوا وَإِذَا رَأَيْتُمُوهُ فَأَفْطِرُوا فَإِنْ غُمَّ عَلَيْكُمْ فَصُومُوا ثَلاَثِينَ يَوْمًا " .
It was narrated from Abu Hurairah that the Messenger of Allah (ﷺ) said:“When you see the new crescent then fast, and when you see it then stop fasting. If it is cloudy then fast thirty days.”
Sahih · Al-Albani
Sunan Ibn Majah 1655 ·Book 7, Hadith 18·Also available on sunnah.com·