Lift immediately after a ride?

I think there are a few considerations about timing. One is whether you want your cycling to compromise your lifting or your lifting to compromise your cycling. Lifting after an endurance ride probably has benefits to strength and some endurance adaptations… but if you are doing hard intervals the next morning, it’s not going to be fun. If you lift in the evening after morning intervals, you might skip the last set or two of squats.

But I think the 80% solution is to lift and ride whenever it fits for you. Most of us lose more fitness to inconsistency than imperfect training… just getting it done is better than skipping either until you are compromising sleep and recovery to fit it in.