Exercising after miscarriage

Hi, I had a miscarriage last week at 16 weeks 2 days. I was wondering when it’s safe to exercise again. I’m a little sore but not too bad. I’m bleeding still, small clots.