turn of a hair
Definition of turn of a hair
: the narrowest possible chance or closest approach without contact
missed the approaching car by a turn of a hair