Friction tries to decelerates the flow even if the flow actually accelerates within this region, so in the, near the boundary, in the boundary layer region, the shear stresses or the friction, skin friction will try to decelerate the flow and the pressure gradient helps the flow.