Know the voice of the Holy Spirit. It is the Holy Spirit that will tell you if your affliction is godly sorrow/judgement/discipline or inherited/ancestral curse. Godly sorrow is God’s discipline, and it is caused by unrepented/unforsaken sin. It has a legal right to torment you until you repent and forsake it.
Inherited, parental and ancestral sins do not have legal right over you. They died by the word of God and the blood of Jesus, the day that you became born again. By faith and aggressive prayer, you need to make sure that you kick out every stubborn demon, or affliction that has been swallowed by the blood of Jesus, and doesn’t have a right over you except through ignorance, deception and spiritual laziness.
Jesus already set you free from past confessed, forsaken sin. Any sin that has been renounced and discarded should not hold you captive. However, if you are ignorant of the word of God, you will find yourself paying for sin that Jesus has already paid for.
You need faith in the blood of Jesus and the deliverance that He purchased for you with His blood. If by the Holy Spirit, you can differentiate between godly sorrow/discipline and sin’s that should no longer hold you captive, you will know how to fight your battles.
If the Holy Spirit reveals to you that your affliction is caused by a sin that you are still committing, then the only way out is to apply Hebrew 12:5 and repent of that sin. The purpose of God’s discipline is for you to recognize your wrongdoing and change/repent.
So, know the difference. If you are ignorant, you might think that a problem caused by inherited curses/ancestral and parental idol worship is godly discipline. Chronic, persistent poverty is often caused by ancestral/parental idol worship. It is not godly discipline. Apply faith and prayer, and let God deliver you from every lie of the devil still afflicting you. Also, repent of every sin that is giving the devil an upper hand or legal ground in your life.
Hebrews 12:5 – ESV
And have you forgotten the exhortation that addresses you as sons? “My son, do not regard lightly the discipline of the Lord, nor be weary when reproved by him.