From Hume, A Treatise of Human Nature 1.2.3 (towards the end of the section; in Selby-Bigge it is pp. 38-39):
Here therefore I must ask, What is our idea of a simple and indivisible point? No wonder if my answer appear somewhat new, since the question itself has scarce ever yet been thought of. We are wont to dispute concerning the nature of mathematical points, but seldom concerning the nature of their ideas.
The idea of space is convey'd to the. mind by two senses, the sight and touch; nor does anything ever appear extended, that is not either visible or tangible. That compound impression, which represents extension, consists of several lesser impressions, that are indivisible to the eye or feeling, and may be call'd impressions of atoms or corpuscles endow'd with colour and solidity. But this is not all. 'Tis not only requisite, that these atoms shou'd be colour'd or tangible, in order to discover themselves to our senses; 'tis also necessary we shou'd preserve the idea of their colour or tangibility in order to comprehend them by our imagination. There is nothing but the idea of their colour or tangibility, which can render them conceivable by the mind. Upon the removal of the ideas of these sensible qualities, they are utterly annihilated to the thought or imagination.
Now such as the parts are, such is the whole. If a point be not consider'd as colour'd or tangible, it can convey to us no idea; and consequently the idea of extension, which is compos'd of the ideas of these points, can never possibly exist. But if the idea of extension really can exist, as we are conscious it does, its parts must also exist; and in order to that, must be consider'd as colour'd or tangible. We have therefore no idea of space or extension, but when we regard it as an object either of our sight or feeling. (my emphasis)
What is puzzling about this passage is that there is nothing new here; the position Hume gives is indistinguishable from Berkeley's. What is more, Hume surely must have known this. I suppose one could put emphasis on the 'scarce' and 'seldom'; but it still seems odd for him to talk about the newness of his question, when Berkeley had already addressed it along exactly the same lines.