What dictionary can say about phrase

beat a hasty retreat