I agree with previous poster. If you are without hope, ANY prayer you pray with a full heart can help, but prayers are not charms, talismans, there is no such thing as a “hope pill”!
If you are really despaired and hopeless, you shoudl pray a lot, whatever formula is suited to you, AND talk to a doctor. Sometimes hopelessness has more ot do with chemical imbalance in the brain (aka depression) than your prayer life.
But fervent prayer helps in depression.