Depression and lost in darkness

I need a prayer that will free me from the depression and thoughts I have. I would like to get better and come back to church. I have not been to church for the past 2years now. I am seeking forgiveness from God because alot has transpired in those two years.