18 But Joash king of Judah took all the sacred objects dedicated by his predecessors—Jehoshaphat, Jehoram and Ahaziah, the kings of Judah—and the gifts he himself had dedicated and all the gold found in the treasuries of the temple of the LORD and of the royal palace, and he sent them to Hazael king of Aram, who then withdrew from Jerusalem.

Read 2 Kings 12:18 Using Other Translations

And Jehoash king of Judah took all the hallowed things that Jehoshaphat, and Jehoram, and Ahaziah, his fathers, kings of Judah, had dedicated, and his own hallowed things, and all the gold that was found in the treasures of the house of the LORD, and in the king's house, and sent it to Hazael king of Syria: and he went away from Jerusalem.
Jehoash king of Judah took all the sacred gifts that Jehoshaphat and Jehoram and Ahaziah his fathers, the kings of Judah, had dedicated, and his own sacred gifts, and all the gold that was found in the treasuries of the house of the LORD and of the king's house, and sent these to Hazael king of Syria. Then Hazael went away from Jerusalem.
King Joash collected all the sacred objects that Jehoshaphat, Jehoram, and Ahaziah, the previous kings of Judah, had dedicated, along with what he himself had dedicated. He sent them all to Hazael, along with all the gold in the treasuries of the LORD ’s Temple and the royal palace. So Hazael called off his attack on Jerusalem.