Anything used as an example or lesson which serves to warn others as to the outcomes that result from a particular action or behavior, as exemplified by the fates of those who followed that course.
Something that serves as a warning or encouragement.