See T.H. Green's Introduction to vol. ii. of Hume's Treatise on Human Nature, §7. The statement is substantially repeated in the same writer's Prolegomena to Ethics.