"So the root of the people who committed wrong was cut off," meaning: who associated partners with God (shirk).
Surah Al-An'am from verse (46) to verse (49).