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.
"Johanne will be glad to see you," said the father. "You've grown into a nice-looking young man. Yes, wait till you see her. There is a girl who rejoices my heart, and please God she will rejoice it still more.
So they took him to a dance hall. He saw many pretty girls there, but there was not one to compare with Johanne; here, where he had hoped to forget her, she was more vivid than ever before the eyes of his soul. "God gives us the strength for much," she had said, "if only we try to do our best." Then a devotion came to his mind, and he folded his hands quietly.