It was completed while Smart was imprisoned for outstanding debt at the King 's Bench Prison .
The work is Smart 's final exploration of religion .
It was completed while Smart was imprisoned for outstanding debt at the King 's Bench Prison , and the work is his final exploration of religion .