by a nose
By an extremely short or slim margin (of distance, time, or another measure). They're just about to close the gates! It looks like we made the flight by a nose. The race was neck and neck till the very end, but Sally won it by a nose.
by a nose
(of a victory) by a very narrow margin. In horse racing, by a nose is the narrowest margin by which a horse can win.