Scouting founder, Robert Baden-Powell, based the Scout Motto and and Scout Law on The Knight's Code. The Knight's Code, as published in the Boy Scout Handbook:
The Knight's Code
"BE ALWAYS READY with your armor on, except when you are taking your rest at night.
Defend the poor, and help them that cannot defend themselves.
Do nothing to hurt or offend anyone else.
Be prepared to fight in the defense of your country.
At whatever you are working, try to win honor and a name for honesty.
Never break your promise.
Maintain the honor of your country with your life.
Rather die honest than live shamelessly.
Chivalry requireth that youth should be trained to perform the most laborious and humble offices with cheerfulness and grace, and to do good onto others.