Proverbs 25:4 in the King James Version
Take away the dross from the silver, and there shall come forth a vessel for the finer.
Context
3 As the heavens for height, and the earth for depth, so the hearts of kings are unsearchable.
4 Take away the dross from the silver, and material comes out for the refiner.
5 Take away the wicked from the king’s presence, and his throne will be established in righteousness.