scabies , tips?

So I've had this rash all over my body and i went to the doctors & they told me it was scabies. So i got rid of it, cleaned everything and used the medicine they gave me. Turns out, i got it again and I honestly don't know why. Ive been up all night scratching and it's driving me insane. Please if anyone has any tips on how to get rid of it, please comment down below. ❤️