precept

A guideline or rule for training one’s body, speech, or mind.

Synonyms:
ethical restraint, vow