Parashas Bechukosai · tochacha · Passuk 30 · Unit 1
Torah Temimah cites the classical source on exile for the sin of idolatry (parallel to Shabbos 33a / Toras Kohanim).
English: It was taught: For the sin of idolatry exile comes to the world — they are exiled and others come and dwell in their place, as it is said, “I will cast your carcasses upon the carcasses of your idols.”
Causal / sin-consequence derasha linking idolatry to exile and displacement.
Idolatry is identified as a root cause of exile: the land is vacated and occupied by others, fulfilling the image of carcasses upon the idols.