저잣거리에서 물감으로 실을
염색하는 기술자의 모습을
유심히 관찰하고 바라본 후 묵자는
탄식하며 슬퍼하였다.
스승의 그런 모습을 곁에서
지켜보던 제자 하나가
''어찌하여 실에 물들이는 모습을 보면서
그처럼 슬퍼하십니까?'' 하고 물으니,
묵자는 이렇게 대답하였다.
''내가 탄식한 것은 처음에는
아무런 색도 없는 실이 파란 물감에 물들이면 파란색이 되고,
노란 물감에 물들이면 노란색이 된다는 사실때문이다.
이렇게 물감에 따라 실의 색깔도 변하여
매번 다른 색깔을 만드니,
물들이는 일이란
참으로 조심해야 할 일이다.
마찬가지로 사람이나 나라도
이와 같아 물들이는 방법에 따라 흥하기도 하고,
망하기도 하는 것이기 때문인 것이다.
묵자의 이 내용은 [소염편]에 나오는
묵자비염(墨子悲染)이란 고사성어
''묵자가 물들이는 것을 보고 슬퍼한다는 말''
''사람은 습관에 따라 그 성품이 결정되고,
평소에 사소한 것이라고 생각되는 작은 일까지라도
그것이 계속되면 습관화되어 생각과 태도가 길들여지는 것이니,
나쁜 습관이 들지 않도록 경계하라는 것''이
묵자의 가르침이었던 것이다.