Knock on the coffin lid best run is a phrase used to describe a situation where someone has narrowly escaped death or serious injury.
The phrase is often used in a humorous way, but it can also be used to express relief or gratitude. For example, someone who has survived a car accident might say that they “knocked on the coffin lid” that day.