Allah's Messenger (ﷺ) 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."
Sahih al-Bukhari Book 30, Hadith 17