close call

[close call] or [shave] {n. phr.} A narrow escape.

That sure was a close call when that truck came near us from the right!

When Tim fell off his bicycle in front of a bus, it was a very close shave.