타산지석

learning from someone else's mistakes; lesson from someone else's failures

Explanation

〔他山之石〕

learning from someone else's mistakes; lesson from someone else's failures
(figurative) An idiom implying that even someone's bad attitude or misbehavior can help one to think twice and correct one's own behavior or mind.