However, there are some hymns that draw inspiration from Milton's work, particularly his epic poem "Paradise Lost." For instance, the hymn "O God, Our Help in Ages Past" by Isaac Watts is influenced by Milton's poem.
Therefore, it's not accurate to say that Milton wrote hymns. He contributed to the development of religious poetry and provided inspiration for later hymn writers, but he didn't write hymns himself.