help me find a movie about how a robber came with a gang for treasure but they turned out to be cursed and a demon attacked him with a flaming sword said that his soul was cursed and he jumped out of the window and went to church.
Then he gave all his wealth to the church, but the head of the church said that needed to leave anyway, because god told him to let him go. The robber asked to stay because only there he was safe. But the churchman said that he needed to leave to remove the curse from his soul.