The present invention relates to a solenoid valve (2) for controlling an injection valve (1) of an internal combustion engine, including an electromagnet (34), a movable armature (29), a control valve member (25,26) moved with the armature (29) and cooperating with a valve seat (24) for opening and closing a fuel discharge channel (17) of a control pressure chamber (14) of the injection valve, and a sliding piece (40) guiding the armature (29), which is positioned together with the armature (29) and the control valve member (25,26) in an armature chamber (51,52). For reducing the bounce of the armature, it is proposed that the sliding piece (40) subdivides the armature chamber into a pressure relief chamber (52) connected to a fuel low-pressure connection (10) and an hydraulic damping chamber (51), into which fuel discharge channel (17) opens out, which damping chamber may be pressure-relieved to a pressure relief chamber (52) via at least one connecting channel (44,47) provided with a throttle (43,48), the speed of the control valve member (25,26) being lowered during the closing of solenoid valve (2), before the impact on valve seat (24), by a fuel pressure cushion acting upon the control valve member (25,26) in the damping chamber (51).