The advice and expression to “leave no stone unturned” comes from Greek mythology, wherein the Oracle of Delphi, through his communication with the gods, had acquired great wisdom.
Euripides wrote that when the oracle was consulted about how to find a defeated general’s hidden treasure, he advised that the only way was “to leave no stone unturned.”
The expression and the advice have been with us ever since.