Bulugh al-Maram 10
وَعَنْ أَبِي هُرَيْرَةَ - رضي الله عنه - قَالَ: قَالَ رَسُولُ اللَّهِ - صلى الله عليه وسلم: «طَهُورُ إِنَاءِ أَحَدِكُمْ إِذَا وَلَغَ فِيهِ الْكَلْبُ أَنْ يَغْسِلَهُ سَبْعَ مَرَّاتٍ, أُولَاهُنَّ بِالتُّرَابِ». أَخْرَجَهُ مُسْلِمٌ. وَفِي لَفْظٍ لَهُ: «فَلْيُرِقْهُ». وَلِلتِّرْمِذِيِّ: «أُخْرَاهُنَّ, أَوْ أُولَاهُنَّ بِالتُّرَابِ».
From Abu Hurayrah, may Allah be pleased with him, who said: The Messenger of Allah ﷺ said: "The purification of the vessel of one of you, when a dog has licked from it, is that he washes it seven times, the first of them with earth." Reported by Muslim. And in a wording of his: "Let him pour it out." And at-Tirmidhi has: "The last of them, or the first of them, with earth."