Sirach (Ecclesiasticus) 21:27

When the ungodly curseth Satan, he curseth his own soul.

Brenton's English Septuagint