Lower Back Spasm Recovery/Prevention

Experienced some lower back spasms, specifically on the right side, the day after i squatted heavy. I can get comfortable in most positions, however when i bend over and do sudden movements I get a catching pain. Wondering if anyone else has experienced this and if they have, how they have dealt with it and prevented it.