The motif Prayer is a part of: Ritual
Faith, speech, words, ritual
Prayers in a religious sense of the word, are adressed to one or more gods, divine or sacred persons in anticipation of help, blessings or a good relationship.
There are prescribed prayers, e.g. the Lord's Prayer and Ave Maria, and there are prayers, which are spontaneous and individual. Both kinds are present in Andersen's tales.
"(...) I'll thank our Lord first of all, and thank Him all the more now that Little Emilie is getting better again."