I too don't feel like exercising after work, or at 6 in the morning. And many years ago I determined that without exercise my life is a living hell. Simply, I need to push weights and exert myself physically to keep mentally sane.
So I've found work that works for me, as in, I can go to the gym at lunch, which is when I feel good about working out.
Make your routine work for you, and not the other way around. Prioritising yourself is exactly like the plane safety announcement, place the mask on your face before assisting others, because you're no good to them passed out. Same thing with your health, make it a priority to look after yourself and feel good, or you won't be your be able to help anyone, and you won't be a good version of yourself people will want to hang with.
I found the same worked very well for me, around lunch hour is the best time for me to train.
I managed to go to the gym after work for a few years when I was on my early 20s, I had to force myself many times but I liked the routine and was motivated enough with keeping consistency but over the years I got more drained of energy from work and I couldn't muster the motivation anymore.
I experimented with going early in the morning on my way to the office for almost a year, I realised I absolutely dreaded it since it felt I had to rush to not be late even when there was ample time for my routines, instead of enjoying the meditative state of lifting weights I was always preoccupied with time.
In the end the best approach/routine for me was to start the workday some 30 min earlier, take an extended lunch hour to go train, and extend another 30 min at the end of the day. It always gives me the feeling of living 2 days in one, I feel clear minded and refreshed after coming back from my lunch hour, I don't have to care about waking up much earlier than my usual nor juggle between social activities in the evening and my training, I can do both: train, and go out after work to meet friends without caring that I missed a gym session.
Also the bonus of the gym being mostly empty at these times is also great, I get very unmotivated if it's packed, having to wait for equipment, anything that extends my routines takes the joy of doing them away.
I was introduced to Masters Swimming programs by a corporate group manager back in the day. There were a bunch of participating pools in Silicon Valley.
Absolutely the best to walk back into work with all that energy. Several co-workers followed after me. It was contagious! Hehe