A Song to David, a 1763 poem by Christopher Smart, was, debatably, most likely written during his stay in a mental asylum while he wrote Jubilate Agno. Although it received mixed reviews, it was his most famous work until the discovery of Jubilate Agno.
The poem focuses on King David and various aspects of his life, but quickly turns to an emphasis on Christ and Christianity.