Unless someone deliberately injected you with a hollow-bore needle that has a syringe, you didn't have a risk for HIV. An accidental prick by a needle is not going to transmit HIV. HIV has to enter your bloodstream, and that is not easy unless a needle is jabbed directly into your vein.