It is difficult for a man to speak long of himself without vanity; therefore, I shall be short. It may be thought an instance of vanity that I pretend at all to write my life; but this Narrative shall contain little more than the History of my Writings; as, indeed, almost all my life has been spent in literary pursuits and occupations.
This very short and charming overview of his life can be read here:
https://ebooks.adelaide.edu.au/h/hume/david/life-of-david-hume-esq-written-by-himself/