Confucius said this quote

Ji Wenzi always thought thrice before acting. Hearing this the Master said, Twice is enough.