In Mark 11:25, Jesus says, “Whenever you stand praying, forgive, if you have anything against anyone, so that your Father also who is in heaven may forgive your transgressions.”
Jesus makes it very clear that we can’t carry anger, hatred, or bitterness in our hearts toward anyone if we expect God to forgive us and/or hear our prayers.