This is one of the Aesop's fables that comes from the neo-Latin writer known as Abstemius; I had shared a fable from Abstemius here earlier: The Bear and the Bees.
Abstemius calls this fable De accipitre columbam insequente, About the Hawk Pursuing the Dove. I've collected various English-language versions and illustrations, and the one I want to share here is the one in Croxall's Aesop:
THE HAWK AND THE FARMER
A hawk, pursuing a pigeon over a corn-field with great eagerness and force, threw himself into a net, which a husbandman had planted there to take the crows; who, being employed not far off, and seeing the hawk fluttering in the net, came and took him.
But just as he was going to kill him, the hawk besought him to let him go, assuring him that he was only following a pigeon, and neither intended, nor had done any harm to him.
To whom the farmer replied, “And what harm had the poor pigeon done to you?”
Upon which he wrung his head off immediately.
Here's the illustration from Francis Barlow: