You are enquiring about the verse which says “Whichever is the object/source of pleasure today, will turn later into an object/source of pain/suffering later.”
There is a verse in The Katha Upanishad which has the similar meaning as above.
Background – In this Upanishad there is story of small boy Nachiketa ,
who goes to Yama loka (Death god Yama’s abode) .Yama gives him three
boons. Nachiketa tells what he wants out of two. But for his
third boon he asks question related to death to Yama .” what
becomes of a man after death”
But Yama the god of death says to Nachiketa that “ This is closely
guarded secret and even in olden times in gods also arose similar
doubt” and tells Nachiketa to ask something else other than answer of
this question , and tries to tempt him saying that “I will give
you all the pleasures of this world ,which are very hard to get , Long
life , women , lots of sons ,gold , chariots etc.
But Nachiketa refuses all this and says to Yama that all this
pleasures are short lived will not remain tomorrow , “they tend
to the decline of the vigour of all the organs of man. These nymphs
and other enjoyments only tend to harm, because they destroy virtue,
strength, intellect, vigour, fame and the rest. “
Here is the verse with Shankara’s Commentary:
श्वोभावा मर्त्यस्य यदन्तकैतत्सर्वेंद्रियाणां जरयंति तेजः ।
अपि
सर्वं जीवितमल्पमेव तवैव वाहास्तव नृत्यगीते ||26||
śvobhāvā martyasya yadantakaitatsarveṃdriyāṇāṃ jarayaṃti tejaḥ |
api
sarvaṃ jīvitamalpameva tavaiva vāhāstava nṛtyagīte || 26 ||
26 (Nachikêtas says) Ephemeral these; Oh Death, these tend to the
decay of the fire (vigour) of all the senses in man. Even the longest
life is, indeed, short. Thine alone be the chariots, the dance and
music.
Shankara’s Commentary:—Though thus tempted, Nachikêtas unagitated like
a large lake, said: svôbhâvah, enjoyments whose existence the next day
is a matter of doubt; the enjoyments enumerated by you are ephemeral;
again. Oh Death, they tend to the decline of the vigour of all the
organs of man. These nymphs and other enjoyments only tend to harm,
because they destroy virtue, strength, intellect, vigour, fame and the
rest. As for the longevity that you will give me, hear me on that
point. All life, even that of Brahmais, indeed, short. What need be
said of our longevity. Therefore, keep the chariots, etc., for thyself
alone, as also the dance and music.
Although this verse is not exactly similar like "Todays pleasures are tomorrow's pain & sufferings" , but convey the same meaning that , all the pleasures of today in future are source of pain and suffering because they tend to destroy virtue, strength, intellect, vigour, fame and the rest only tend to harm.