Premanand Maharaj Ji
I knowingly did wrong. How do I get free of that sin?
Atone for sins done knowingly
Sins done knowingly are what matter, and they must be met with atonement or refuge in Bhagwan. Otherwise they become prarabdha (fate to be suffered) later.
A sin done knowingly is punished in the waking state. So for a sin we committed knowingly, we should either do atonement or take refuge in Bhagwan and seek forgiveness.