Sirach (Ecclesiasticus) 18:20

Before judgment examine thyself, and in the day of visitation thou shalt find mercy.

Brenton's English Septuagint