Historical Context
Azariah's prophecy is set against the backdrop of King Asa's reign in Judah. By the biblical account, Asa commanded a large military force, and the kingdom faced an invasion by Zerah the Ethiopian, who came against Judah with an enormous army. Asa prayed for divine intervention, and the Lord defeated the invaders.
It was in the aftermath of this victory that the Spirit of the Lord came upon Azariah. The prophet addressed not only the king but "all Judah and Benjamin," delivering his message to the people broadly rather than only to the ruling elite.