Quran 7:176 from Surah Al-A'raaf on Divine Marvels.
وَلَوۡ شِئۡنَا لَرَفَعۡنَٰهُ بِهَا وَلَٰكِنَّهُۥٓ أَخۡلَدَ إِلَى ٱلۡأَرۡضِ وَٱتَّبَعَ هَوَىٰهُۚ فَمَثَلُهُۥ كَمَثَلِ ٱلۡكَلۡبِ إِن تَحۡمِلۡ عَلَيۡهِ يَلۡهَثۡ أَوۡ تَتۡرُكۡهُ يَلۡهَثۚ ذَّٰلِكَ مَثَلُ ٱلۡقَوۡمِ ٱلَّذِينَ كَذَّبُواْ بِـَٔايَٰتِنَاۚ فَٱقۡصُصِ ٱلۡقَصَصَ لَعَلَّهُمۡ يَتَفَكَّرُونَ
English translation: And if We willed surely We (could) have raised him with these [and] but he adhered to the earth and followed his (vain) desires So his example (is) like (the) example (of) the dog if you attack [on] him he lolls out his tongue or if you leave him he lolls out his tongue That (is the) example (of) the people who denied [in] Our Signs So relate the story so that they may reflect
Transliteration: walaw shi'na larafa'nahu biha walakinnahu akhlada ila al-ardi wa-ittaba'a hawahu famathaluhu kamathali al-kalbi in tahmil alayhi yalhath aw tatruk'hu yalhath dhalika mathalu al-qawmi alladhina kadhabu biayatina fa-uq'susi al-qasasa la'allahum yatafakkaruna