"Therefore, Your Majesty, be pleased to accept my advice: Renounce your sins by doing what is right, and your wickedness by being kind to the oppressed. It may be that then your prosperity will continue."
NIV
Therefore, O king, let my counsel be acceptable to you; break off your sins and show the reality of your repentance by righteousness (right standing with God and moral and spiritual rectitude and rightness in every area and relation) and liberate yourself from your iniquities by showing mercy and loving-kindness to the poor and oppressed, that [if the king will repent] there may possibly be a continuance and lengthening of your peace and tranquility and a healing of your error.
AMP
Wherefore, O king, let my counsel be acceptable unto thee, and break off thy sins by righteousness, and thine iniquities by shewing mercy to the poor; if it may be a lengthening of thy tranquillity.
KJV