That '70s Episode

After Prue, Piper, and Phoebe cross paths with a Warlock named Nicholas, they discover that he is intent on obtaining their powers by any means necessary. When they discover that he's immune to their powers thanks to an agreement with their mother, they cast a spell to go back in time to the day the deal was made, hoping to stop their mother from going through with it.