A hymnodist is a writer of hymns, especially religious songs intended for singing in worship. The word points to the person who creates the text of the hymn, not necessarily the composer of the music.
Example
The hymnodist wrote simple, steady lines
for voices rising together at Sunday service:
light for the weary,
hope for the broken,
peace for the night.