Proverbs 17:3

ESV
“The crucible is for silver, and the furnace is for gold, and the LORD tests hearts.”