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).