The origins of this phrase are uncertain but seem to trace back to a military reference.
1) It could go back to the Vietnam era referring to the nine Montagnard tribes or “Yards”
2) Or it may refer to a drill where soldiers were trained to cover nine yards in three seconds before diving to the ground to avoid sniper fire