Allaah has created different types of jinn. Among them are some who can take on different forms, such as dogs and snakes; some who are like flying winds with wings; and some who can travel and rest. Abu Tha'labah al-Khushani said: "The Messenger of Allaah (peace and blessings of Allaah be upon him) said: 'The jinn are of three types: a types that has wings, and they fly through the air; a type that looks like snakes and dogs; and a type that stops for a rest then resumes its journey."
(Reported by al-Tahhaawi in Mushkil al-Athaar, 4/95, and by al-Tabaraani in al-Kabeer, 22/214. Shaykh al-Albaani said in al-Mishkaat (2/1206, no. 4148): al-Tahhaawi and Abu'l-Shaykh reported it with a saheeh isnaad).