The jinn's hearing the Quran during the journey to Taif has been related in Al-Ahqaf 29-32. A cursory reading of those verses shows that the jinn who had believed after hearing the Quran on that occasion were already believers in the Prophet Moses and the previous scriptures.