Follow orders

To do as one has been instructed.

The soldiers were following orders when they attacked the village.