(2) بَاب وُجُوبِ صَوْمِ رَمَضَانَ لِرُؤْيَةِ الْهِلَالِ وَالْفِطْرِ لِرُؤْيَةِ الْهِلَالِ وَأَنَّهُ إِذَا غُمَّ فِي أَوَّلِهِ أَوْ آخِرِهِ أُكْمِلَتْ عِدَّةُ الشَّهْرِ ثَلَاثِينَ يَوْمًا
Ibn Umar (Allah be pleased with both of them) reported Allah's Messenger (ﷺ) as saying:
The month is thus and thus and thus (i. e. pointing with his fingers thrice), and he held back his thumb at the third time (in order to show that it can also consist of twenty-nine days).
Reference: Sahih Muslim 1080 i
In-book reference: Book 13, Hadith 12
USC-MSA web (English) reference(deprecated numbering scheme): Book 6, Hadith 2371