In 1755 Hume's essays "Of Suicide" and "Of the
Immortality of the Soul" were printed along with the "Natural History of
Religion" in a book titled Five Dissertations. ...In 1783 a reprint
of the 1777 version was published more openly, and this time with Hume's
name attached. Along with Hume's two essays, the anonymous editor of the
1783 edition included his own critical notes to Hume's two pieces, and
excerpts from Rousseau's La Nouvelle Heloise on the subject of
suicide. "Of Suicide"
defends the moral permissibility of suicide by arguing that it does not
violate our duties to God, oneself, or others."
The Internet Encyclopedia of Religion,
"David Hume (1711-1776) Writings on Religion." http://www.iep.utm.edu/h/humereli.htm