The Qur'an mentions the extraordinary preservation of the People of the Cave and the dog accompanying them. Their story is cited in discussions of divine preservation of devoted believers.
Other narratives describe animals speaking, but the Qur'anic mention of the dog is not itself an explicit account of this dog speaking.
Qur'anic wording and later historical or exegetical additions have different levels of evidence.