From Sahih Bukhari (Hadith 1913):
Narrated Ibn `Umar:The Prophet (ﷺ) said, "We are an illiterate nation; we neither write, nor know accounts. The month is like this and this, i.e. sometimes of 29 days and sometimes of thirty days
Reference: Bukhari 1913