I regretted the time I wasted on things that did not matter with people that [do] matter.
or simply: