Hadithcore
Mishkat al-Masabih, 4148

Abu Tha'laba al-Khushani traced to the Prophet (ﷺ) the saying that the <i>jinn</i> are of three classes, one which have wings and fly in the air, one which consists of snakes and dogs, and one which stay in places and travel about. It is transmitted in <i>Sharh as-sunna</i>.

وَعَن أبي ثعلبةَ الخُشَنيَّ يَرْفَعُهُ: «الْجِنُّ ثَلَاثَةُ أَصْنَافٍ صِنْفٌ لَهُمْ أَجْنِحَةٌ يَطِيرُونَ فِي الْهَوَاءِ وَصِنْفٌ حَيَّاتٌ وَكِلَابٌ وَصِنْفٌ يُحلُّونَ ويظعنونَ» . رَوَاهُ فِي شرح السنَّة

References1 variant
In-Book Reference
Book 20, Hadith 83