The Fable Aesop tells is nearly this:
A Shepherd from his flock began to miss,
And long'd to catch the stealer of his sheep.
Before a cavern, dark and deep,
Where wolves retired by day to sleep,
Which he suspected as the thieves,
He set his trap among the leaves;
And, ere he left the place,
He thus invoked celestial grace:
"O king of all the powers divine,
Against the rogue but grant me this delight,
That this my trap may catch him in my sight,
............