Law #22 of the Code of Hammurabi states:

If any one is committing a robbery and is caught, then he shall be put to death

**********