In Matthew 3, John was preaching and baptizing people in the wilderness telling them to "Repent for the kingdom of heaven is at Hand" - Matthew 3:2. All the people of Judea and the regions around Jordan were baptized and they confessed their sins Matthew 3: 5-6.
When the Pharisees and Sadducees came to John's baptism, he said,
“Brood of vipers! Who warned you to flee from the wrath to come? 8 Therefore