(2) بَاب وُجُوبِ صَوْمِ رَمَضَانَ لِرُؤْيَةِ الْهِلَالِ وَالْفِطْرِ لِرُؤْيَةِ الْهِلَالِ وَأَنَّهُ إِذَا غُمَّ فِي أَوَّلِهِ أَوْ آخِرِهِ أُكْمِلَتْ عِدَّةُ الشَّهْرِ ثَلَاثِينَ يَوْمًا
This hadith is narrated on the authority of 'Ubaidullah with the same chain of transmitters, and he said:
If (the sky) is cloudy for you, then calculate thirty days (for the month of Ramadan).
Reference: Sahih Muslim 1080 c
In-book reference: Book 13, Hadith 6
USC-MSA web (English) reference(deprecated numbering scheme): Book 6, Hadith 2365
Read hadith from the major collections in the app, with prayer times and a Qibla compass. Free.