the establishment and stipulations of the mosaic covenant are recorded in the first five books of the hebrew bible , which are collectively called the torah and sometimes referred to as the law of moses or mosaic law .