If I admit I was wrong about something I believed for years, does that mean all those years were for nothing?
Your motives can turn out wrong while the road you walked still stands.
You've joined two things together: being wrong and having wasted your life. Once they're joined, admitting even one mistake feels like losing everything. So you keep defending it, because the other choice seems to be looking back at an empty field.
This teaching pulls those two things apart. "Just because your motives were wrong doesn't mean your life was wasted." The reasons behind your choices can fall away, and the life you built on them is still there. The years happened. The things you did with them still count.
The teaching puts it this way: "Remember the entire journey Hashem led you through." The whole journey, including the wrong turns. If Hashem was leading even through the parts you now see were mistaken, then admitting the mistake doesn't erase the road. It means you can finally look at the road honestly, and you'll find it isn't empty.
“Just because your motives were wrong doesn't mean your life was wasted.”