Yes, it was in one of the movies. A Klingon ambassador, played by Christopher Plummer, said it in response to one of the Enterprise crew's reference to a Shakespearean play.