The man casting evil would be commanded to perform ablution, and then the man affected was washed with it.
Sunan Abi Dawud Book 29, Hadith 26