"And if even with these you will not listen to Me" (Leviticus 26:18). Rabbi Eliezer says: The Holy One, blessed be He, does not bring punishment upon Israel until He first testifies against them, as it is said, "And if even with these you will not listen to Me." [Rabbi Yehoshua says: so that Israel should not say, "The plagues are finished"]: I still have plagues like these and like these that I will bring upon you. You transgressed before Me with seven transgressions; come and receive seven punishments. The explanation of the seven transgressions: a soothsayer, and a diviner, and a sorcerer, and a caster of spells, and one who consults a ghost, and a wizard, and one who inquires of the dead. I will bring upon you seven plagues that are written with seven "af" (anger).
Seven Forbidden Arts and the Seven Punishments of Af
Midrash Aggadah, Leviticus 26:18
ואם עד אלה לא תשמעו לי. ר' אליעזר אומר אין הקב"ה מביא פורענות על ישראל עד שהוא מעיד בהם תחלה, שנאמר ואם עד אלה לא תשמעו לי. [ר' יהושע אומר שלא יאמרו ישראל כלו המכות, עוד] יש לי מכות כאלה וכאלה שאביא עליכם, אתם עברתם לפני שבע עבירות, בואו וקבלו שבע פורעניות, פירוש שבע עבירות מעונן ומנחש ומכשף וחובר חבר ושואל אויב וידעוני ודורש אל המתים, אני אביא עליכם שבע מכות שהם כתובים בשבע אף: