Messenger of Allah ﷺ said, "The month (can be) 29 nights (i.e. days), and do not fast till you see the moon, and if the sky is overcast, then complete Sha'ban as thirty days."
أَنَّ رَسُولَ اللَّهِ ﷺ قَالَ الشَّهْرُ تِسْعٌ وَعِشْرُونَ لَيْلَةً فَلاَ تَصُومُوا حَتَّى تَرَوْهُ فَإِنْ غُمَّ عَلَيْكُمْ فَأَكْمِلُوا الْعِدَّةَ ثَلاَثِينَ