2 Kings 18:13 In the fourteenth year of Hezekiah’s reign, Sennacherib king of Assyria attacked and captured all the fortified cities of Judah. 14So Hezekiah king of Judah sent word to the king of Assyria at Lachish, saying, “I have done wrong; withdraw from me, and I will pay whatever you demand from me.”
And the king of Assyria exacted from Hezekiah king of Judah three hundred talents of silver and thirty talents of gold. 15 Hezekiah gave him all the silver that was found in the house of the LORD and in the treasuries of the royal palace.
16At that time Hezekiah stripped the gold with which he had plated the doors and doorposts of the temple of the LORD, and he gave it to the king of Assyria.
Hezekiah gave all the gold and silver to the king of Assyria in exchange to stay as the ruler of Judah. Two chapters later he bragged about how rich he was:
2 Kings 20:12 At that time Merodach-baladanb son of Baladan king of Babylon sent letters and a gift to Hezekiah, for he had heard about Hezekiah’s illness. 13And Hezekiah received the envoys and showed them all that was in his treasure house—the silver, the gold, the spices, and the precious oil, as well as his armory—all that was found in his storehouses. There was nothing in his palace or in all his dominion that Hezekiah did not show them.
How could he get so rich so quickly? Did he fool Sennacherib?