Disclosed is a device (2) for carrying out a distraction and/or a compression of vertebral bodies during spinal surgery, said device comprising a first (4) and a second (6) sleeve-shaped extension part, each part having a longitudinal direction (44, 46) and each of which parts can be secured on a bone anchor (8, 10) in a detachable but rigid and rotationally fixed manner. The device is