Cycling was and is, far and away, the best physical therapy for my bad back.
If my back starts to hurt, I ride my bike.
If it hurts a lot (debilitating pain), I wait for it to subside a little but then I ride. I may start slowly and avoid the hills but I ride.