For me it was squat and deadlift with a lot of stretching.
Though for me a lot of the lower back pain came from really tight hamstrings so the stretching was important for that (and you can't really do squats and deadlifts with proper form without enough flexibility)