which album did it appear in?
Rainbow
Praying (song)
"Praying" is a song by American singer Kesha for her third studio album "Rainbow" (2017). 
who wrote the lyrics to praying by kesha Kesha ,Ben Abraham, Andrew Joslyn
wiki:9674818
Praying (song) [SEP] Introduction
"Praying" is a song by American singer Kesha for her third studio album "Rainbow" (2017). It was made available for digital download by Kemosabe Records on July 6, 2017 as the album's lead single. The track originated from Ryan Lewis, who contacted Kesha and offered her an early version of the song. "Praying" was written by the singer with Ben Abraham, Andrew Joslyn, and its producer, Lewis, and co-produced by Jon Castelli. Musically, the song is a gospel and soul-influenced pop piano ballad that features minimal production and accompaniment from violins, violas, strings, celli, backing vocals and drums. Inspired by suicidal thoughts she has had in the past, Kesha said that "Praying" is about hoping that anyone, even abusers, can heal.