According to Jewish mythology, Lillith was Adam's first wife. She was unwilling to submit to Adam and kicked out of paradise. The idea she is a demon developed over time.
Proverbs 14:1 reads (New Jerusalem Bible): "Wisdom builds herself a house; with her own hands Folly pulls it down."