Problem: In 2 Kings 16:15, Ahaz encouraged the worship of the Lord in the temple. But, in 2 Chronicles 28 he is said to have “shut up the doors of the house of the Lord, and made for himself altars in every corner of Jerusalem” (v. 24).
Solution: First of all, even in 2 Kings, during his earlier reign, Ahaz was said to be an evil king who “did not do what was right in the sight of the Lord his God” (16:2). He even “took the silver and gold that was found in the house of the Lord … and sent it as a present to the king of Assyria” (v. 8). During this period, he encouraged only a corrupt form of worship in the pilfered Jerusalem temple (v. 15).
Furthermore, the 2 Chronicles passages refers to a later, even more corrupt, part of his reign. During this period of apostasy, he shut up the house of the Lord completely and set up his own centers of worship.