Sahih Muslim , Book 6, Hadith 2365 (USC-MSA) ⓘ
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).
وَحَدَّثَنَا ابْنُ نُمَيْرٍ، حَدَّثَنَا أَبِي، حَدَّثَنَا عُبَيْدُ اللَّهِ، بِهَذَا الإِسْنَادِ وَقَالَ " فَإِنْ غُمَّ عَلَيْكُمْ فَاقْدِرُوا ثَلاَثِينَ " . نَحْوَ حَدِيثِ أَبِي أُسَامَةَ .
also referenced under: Book 13, Hadith 6 (In-Book) & Hadith 1080 (Reference)