There were various codes or you may even call them mantras of the Jedi, Grey Jedi and the Sith. Here they are
The mantra of the Jedi Code:
There is no emotion, there is peace.
There is no ignorance, there is knowledge.
There is no passion, there is serenity.
There is no chaos, there is harmony.
There is no death, there is the Force
The Grey Jedi Code
Flowing through all, there is balance
There is no peace without a passion to create
There is no passion without peace to guide
Knowledge fades without the strength to act
Power blinds without the serenity to see
There is freedom in life
There is purpose in death
The Force is all things and I am the Force
The Sith Code
Peace is a lie. There is only Passion.
Through Passion I gain Strength.
Through Strength I gain Power.
Through Power I gain Victory.
Through Victory my chains are Broken.
The Force shall free me.