A DOG lay in a manger , and by his growling and snapping prevented the oxen from eating the hay which had been placed for them .