The Ten Commandments were given by God to Moses in the book of Exodus, chapter 20.
Note: The Roman Catholic church has conveniently omitted the second commandment dealing with the worship of images and idols, and have split the last commandment (i.e. the 10th), into two parts, to make up ten commandments. This means that the Catholic version of the Ten Commandments reads like this:
The last two items are in fact one commandment in the Bible. This is a perversion of the Bible to justify the practice of idolatry in Roman Catholicism.