MUSLIM 1080b: from Ibn ʿUmar —
The month is thus and thus. (He then withdrew his thumb at the third time). He then said: Fast when you see it, and break your fast when you see it, and if the weather is cloudy calculate it (the months of Sha'ban and Shawwal) as thirty days.

مسلم ١٠٨٠b: عن ابن عمر —
أَنَّ رَسُولَ اللَّهِ ﷺ ذَكَرَ رَمَضَانَ فَضَرَبَ بِيَدَيْهِ فَقَالَ الشَّهْرُ هَكَذَا وَهَكَذَا وَهَكَذَا ثُمَّ عَقَدَ إِبْهَامَهُ فِي الثَّالِثَةِ فَصُومُوا لِرُؤْيَتِهِ وَأَفْطِرُوا لِرُؤْيَتِهِ فَإِنْ أُغْمِيَ عَلَيْكُمْ فَاقْدِرُوا لَهُ ثَلاَثِينَ


Sound (Muslim)
Muslim > Ṣawm (Fasting) > § The obligation to fast Ramadan when the crescent is...
hadithunlocked.com