For the phrase “So you shall purge the evil from your midst,” see 1 Corinthians 4:13.
Note that this quote in the New Testament is not taken from the Hebrew Bible but from the Greek Septuagint (LXX) which translates into English as “And you shall remove the evil one from yourselves.” (Translation by NETS — for the Greek version see the title’s tooltip)
