The standard names it
OSHA 1926.25(a): 'form and scrap lumber with protruding nails, and all other debris, shall be kept cleared from work areas, passageways, and stairs.' The walking-surfaces rule 1910.22(a)(3) adds that surfaces must be kept free of hazards such as sharp or protruding objects.
So this isn't a housekeeping nicety — a board lying nail-up in a walkway is a named OSHA violation and a puncture waiting to happen.