It is a quotation from Grey's poem "Elegy in a Country Churchyard." It is a way of showing learning.
The line itself refers to a cemetery, where all the ancestors of a specific small village "sleep" in their graves.
He's saying, when I'm done with this task, I'll be done with life. All that's left is to bury me.