Surah Al-A'raaf, Verse 176
Translation — Sahih International
And if We had willed, we could have elevated him thereby, but he adhered [instead] to the earth and followed his own desire. So his example is like that of the dog: if you chase him, he pants, or if you leave him, he [still] pants. That is the example of the people who denied Our signs. So relate the stories that perhaps they will give thought.
Source
Kur'an-ı Kerim, A'râf Suresi 7:176
https://kuran.diyanet.gov.tr/mushaf/kuran-meal-2/7-suresi-176-ayet