A needle unit for a drug delivery device, wherein the needle unit comprises a needle which is retractable into the drug delivery device from a starting position to an end position and a needle retainer having a stop member. The stop member is configured to prevent a re-exposure of the needle when the needle has been retracted into the drug delivery device.