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."
Sahih al-Bukhari Book 30, Hadith 23