A selection of verses showing that God and Christ will forgive us if we forgive others.
Jesus Christ says:
14 “For if you forgive men their trespasses, your heavenly Father will also forgive you. 15 But if you don’t forgive men their trespasses, neither will your Father forgive your trespasses.
2 For with whatever judgement you judge, you will be judged; and with whatever measure you measure, it will be measured to you.
The apostles Paul and James echo the same sentiment:
32 And be kind to one another, tender hearted, forgiving each other, just as God also in Christ forgave you.
13 bearing with one another, and forgiving each other, if any man has a complaint against any; even as Christ forgave you, so you also do.
13 For judgement is without mercy to him who has shown no mercy. Mercy triumphs over judgement.
These chapters have links to this theme: