Suffer the pain of discipline now or suffer the pain of regret later.
Both paths involve pain, and the only choice is which kind you prefer. Discipline hurts in the moment: the early alarm, the skipped dessert, the evening spent practicing instead of scrolling. It is a small, sharp discomfort that ends when the task does. Regret hurts differently. It arrives later, lasts longer, and can't be negotiated with, because the chance to act has already passed. The quote asks us to trade a little present discomfort for a much heavier future one.
The idea fits an old line of thought, from Aristotle's view that character is built through repeated practice to the Stoic habit of accepting short-term hardship for the sake of a well-lived life. Modern talk of delayed gratification says much the same. The author is anonymous, and the line is often credited to motivational speakers, though no firm source is clear.
Consider someone who wants to learn a language before a move abroad. Thirty minutes of study each evening feels tedious, especially after work. But on arrival, ordering a meal or chatting with a neighbor makes those evenings feel worth it, while skipping them would have left only a quiet wish to have started sooner.