(2) بَاب وُجُوبِ صَوْمِ رَمَضَانَ لِرُؤْيَةِ الْهِلَالِ وَالْفِطْرِ لِرُؤْيَةِ الْهِلَالِ وَأَنَّهُ إِذَا غُمَّ فِي أَوَّلِهِ أَوْ آخِرِهِ أُكْمِلَتْ عِدَّةُ الشَّهْرِ ثَلَاثِينَ يَوْمًا
Ibn Umar (Allah be pleased with both of them) reported Allah's Messenger (ﷺ) as saying in connection with Ramadan:
Do not fast till you see the new moon, and do not break fast till you see it; but if the weather is cloudy calculate about it.
Reference: Sahih Muslim 1080 a
In-book reference: Book 13, Hadith 4
USC-MSA web (English) reference(deprecated numbering scheme): Book 6, Hadith 2363