What questioner seem to be trying to cope with is what is called a mixing of metaphors.
Metaphor 1: "...burning one's candle at both ends."
Metaphor 2: "...burning the midnight oil."
The latter refers, by allusion to oil lamps for illuminating darkness, to staying awake beyond normal bedtime for a purpose such as studying or cramming for a quiz or exam.
The former is a way of figuratively deriding one's self or another for the practice of living to excess, including for pleasure and including the self denial of sleep, such that over time one's health, and ultimately one's life expectancy, is increasingly impaired. The allusion is a simple one in that a candle the wick of which burns at both ends will exhaust and extinguish itself (the candle) twice as quickly.... So a candle wick is figuratively taken as a lifetime.
So, as stated, there is not such a quote, but there are similar, slightly related quotes (plural).