In accordance with the present invention there is provided a surgical fastening instrument. The instrument includes a handle and a shaft extending from the handle. The shaft contains a plurality of surgical fasteners therein. The instrument also has a mechanism for first distally deploying a penetrating member from the distal end of the shaft and thereafter feeding at least one of the surgical fasteners distally from the penetrating member. The instrument further includes a lockout mechanism for preventing the penetrating member from deploying from the shaft upon feeding all of the plurality of surgical fasteners from the shaft.