يَا قَوْمَنَا أَجِيبُوا دَاعِيَ اللَّهِ وَآمِنُوا بِهِ يَغْفِرْ لَكُم مِّن ذُنُوبِكُمْ وَيُجِرْكُم مِّنْ عَذَابٍ أَلِيمٍ
“O our people! Accept the invitation of the one calling to Allah and believe in him. Allah will forgive you your sins and will save you from a painful torment.”
This ayah (part of Q46:29-32) is the Qur'an's own account of this event -- the jinn who passed by, listened to the Prophet's ﷺ recitation at Nakhla, and returned to warn their people.