One day Jesus told his disciples a parable to teach them that they needed to not get discouraged but to pray constantly instead.
“There once was a judge who didn’t fear anyone – God or man. A widow kept coming to him to obtain justice for herself against her adversary. He put her off for a long time. But after a while, he said to himself, “Even though I don’t fear anybody there is something about the fact that this woman keeps pestering me that gets to me. I will rule in her favor so she doesn’t beat me up with her incessant demands.”
Jesus said “Look! Even this hardhearted judge will give in to someone who constantly asks for relief. Don’t you think that God (who is good) will grant relief to those who respect God if they keep asking? Of course God will, and God will help them quickly.
In spite of all this, when the Son of Man comes again how many will be found who have faith and are praying?”