Sahih Muslim, Book 13, Hadith 6 (Muslim 2475)

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).