Word Definition - 引以为戒

yǐn yǐ wéi jiè to take sth as a warning (idiom); to draw a lesson from a case where things turned out badly