Don't get off of it entirely. You'll want to keep moving the joint and doing some light exercises/stretches to keep the blood flowing to the area.
I'd try to squat again at your next workout, just listen to your body. Start with the bar and add as much weight as you can without feeling any pain. Start back from that weight and focus hard on your form so it doesn't happen again!