People talking today about the 10 commandments often loosely quote* the reformer Martin Luther saying, breaking any of the commandments is always a result of breaking the first – i.e. in other words, idolatry – or trusting in and worshiping someone or something other than the personal God who gave Israel the 10 commandments.
Background to the 10 Commandments
The first time the 10 commandments appear in the Bible is when God gave them to Moses. Israel had just dramatically escaped 400 years of slavery in Egypt. The introduction to the first commandment mentions this, even though it is often left out.