H e has dug a hole, and has fallen into the pit which he made.
Кто рыл и выкопал яму, сам в нее упадет.