He won the race by an eyelash.
by an eyelash
idiomBy a very small amount or distance.
The team missed the championship title by an eyelash after the final goal was disallowed.
Although the opposition campaigned tirelessly, the incumbent candidate retained his seat by an eyelash, narrowly avoiding a political upset.