Sahih Muslim 1081 d
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
إِذَا رَأَيْتُمُوهُ فَصُومُوا وَإِذَا رَأَيْتُمُوهُ فَأَفْطِرُوا فَإِنْ أُغْمِيَ عَلَيْكُمْ فَعُدُّوا ثَلاَثِينَ "
Abu Huraira (Allah be pleased with him) narrated that the Messenger of Allah (ﷺ) made a mention of the new moon and (in this connection) said:
Observe fast when you see it (the new moon) and break fast when you see it (the new moon of Shawwal), but when (the actual position of the month is) concealed from you (on account of cloudy sky), then count thirty days.
Full reference and source
Sahih Muslim 1081 d In-book : Book 13, Hadith 23 USC-MSA web (English) : Book 6, Hadith 2381 (deprecated)
View source on Sunnah.com (opens in a new tab)