Jesus used the parable of the widow and the unjust judge to teach about persistence in prayer and the goodness of God.
The parable of the widow and the unjust judge according to Luke 18:1-8
"In addition, Jesus told them a parable about the need to always pray and not lose heart. He told them: "In a certain city there was a judge who feared God and respected no one. In that same city there was also a widow, who went to that judge and asked him: "Do me justice against my adversary." Some time passed, and the judge did not want to attend to her, but then he began to think: "Although I do not fear God or respect anyone, this widow bothers me so much that I am going to do her justice, lest she keep coming and exhaust my patience." ." Then the Lord said: Pay attention to what the unjust judge said. Will not God do justice to his elect, who cry out to him day and night? Will it take time to answer them? I tell them that without delay he will do them justice. But when the Son of Man comes, will he find faith on earth?
I think there are many ways to pray... making positive affirmations... listening to music, for example, among other ways...