Hekayat 86 from Chapter 8 of Golestan of Saadi

English Translation for Hekayat
The highest of all creatures in appearance is man, and the lowest of all creatures is the dog, but according to the consensus of the wise, a grateful dog is better than an ungrateful man.
A dog never forgets a morsel of food,
Even if you strike it a hundred times with a stone.
But if you show kindness to a vile person for a lifetime,
With the slightest harshness, they will come to fight you.
متن حکایت
اَجَلّ کائنات از روی ظاهر آدمیست و اَذلّ موجودات سگ، و به اتّفاقِ خردمندان سگِ حق شناس به از آدمی ناسپاس.
سگی را لقمهای هرگز فراموش
نگردد ور زنی صَد نوبتش سنگ
و گر عمری نوازی سفلهای را
به کمتر تندی آید با تو در جنگ