The text of Beethoven's 9th Symphony was largely "borrowed" from the poem "Ode to Joy" by Friedrich Schiller.
The text of the first verse of the poem (second verse of Beethoven's 9th symphony) is as follows (translation from Wikipedia):
Joy, beautiful spark of divinity,
Daughter from Elysium,
We enter, burning with fervour,
heavenly being, your sanctuary!
Your magic brings together
what custom has sternly divided.
All men shall become brothers,
wherever your gentle wings hover.
The next verse seems to be referring to earthly pleasures:
Whoever has been lucky enough
to become a friend to a friend,
Whoever has found a beloved wife,
let him join our songs of praise!
Yes, and anyone who can call one soul
his own on this earth!
Any who cannot, let them slink away
from this gathering in tears!
The 4th verse makes a passing reference to God, but only after a reference to the "Daughter from Elysum":
Every creature drinks in joy
at nature's breast;
Good and Evil alike
follow her trail of roses.
She gives us kisses and wine,
a true friend, even in death;
Even the worm was given desire,
and the cherub stands before God.
The final verse is much more explicitly religious:
Do you bow down before Him, you millions?
Do you sense your Creator, O world?
Seek Him above the canopy of stars!
He must dwell beyond the stars.
Why does this start with an explicit reference to Greek mythology and only "evolve" to talking about God later? How did the religious views of Schiller and Beethoven influence this?