The present invention relates to a safety pen needle device comprising a first needle shield (60) and a second back-end needle shield (90). During the injection the first needle shield (60) is moved to en retracted position this movement causes a actuation sleeve (31) to rotate. Said rotation causes a holding member (96, 98) provided on the second needle shield (90) to be released. When the first needle shield (60) is moved from the retracted position to a extended position the actuation sleeve (31) is rotated further so that a first guide member (74) on the first needle shield (60) abuts a first stop member (34) arranged on said actuation sleeve (31). After an performed injection both shields are moved to extended positions by the rotation of an actuation sleeve (31). After the injection the shield are locked it their extended position.