For if you forgive other people when they sin against you, your heavenly Father will also forgive you. But if you do not forgive others their sins, your Father will not forgive your sins.
Matthew 6:14-15 NIV
This was mostly based on the parable of the unmerciful servant
Matthew 18:21-35