[Machine] Narrated by the Prophet ﷺ , he said, "Prophet Solomon ﷺ used to see a plant growing in front of him when he stood in prayer, and he would ask it, 'What is your name?' And it would reply, 'Such and such.' Then he would ask it, 'What are you for?' And it would reply, 'For this and that,' whether it was for medicine or for planting. One day, while in prayer, he saw a plant growing in front of him and asked it, 'What is your name?' It replied, 'Al-Kharoob.' He asked it, 'What are you for?' It replied, 'For the destruction of this house.' Prophet Solomon ﷺ said, 'O Allah! Let the jinn die until humans realize that the jinn do not know the unseen.' Then he carved it into a staff and leaned on it. Eventually, the earth swallowed it, and he fell, dying. They found him dead, surrounded by the staff. Thus, humans realized that if the jinn knew the unseen, they would not have suffered such a miserable punishment. Ibn Abbas used to recite it this way, and the earth showed gratitude to the jinn by providing water wherever it was."
عَنِ النَّبِيِّ ﷺ قَالَ كَانَ سُلَيْمَانُ نَبِيُّ اللَّهِ عَلَيْهِ السَّلَامُ إِذَا قَامَ فِي مُصَلَّاهُ رَأَى شَجَرَةً نَابِتَةً بَيْنَ يَدَيْهِ فَيَقُولُ مَا اسْمُكِ؟ فَتَقُولُ كَذَا فَيَقُولُ لِأَيِّ شَيْءٍ أَنْتِ؟ فَتَقُولُ لِكَذَا وَكَذَا فَإِنْ كَانَتْ لِدَوَاءٍ كَتَبَ وَإِنْ كَانَتْ لِغَرْسٍ غُرِسَتْ فَبَيْنَمَا هُوَ يُصَلِّي يَوْمًا إِذْ رَأَى شَجَرَةً نَابِتَةً بَيْنَ يَدَيْهِ فَقَالَ لَهَا مَا اسْمُكِ؟ قَالَتْ الْخَرْنُوبُ قَالَ لِأَيِّ شَيْءٍ أَنْتِ؟ قَالَتْ لِخَرَابِ هَذَا الْبَيْتِ قَالَ سُلَيْمَانُ عَلَيْهِ السَّلَامُ اللَّهُمَّ عَمِّ عَلَى الْجِنِّ مَوْتِي حَتَّى يَعْلَمَ الْإِنْسُ أَنَّ الْجِنَّ لَا تَعْلَمُ الْغَيْبَ قَالَ فَنَحَتَهَا عَصًا فَتَوَكَّأَ عَلَيْهَا قَالَ فَأَكَلَتْهَا الْأَرَضَةُ فَسَقَطَ فَخَرَّ فَوَجَدُوهُ مَيِّتًا حَوْلًا فَتَبَيَّنَتِ الْإِنْسُ أَنَّ الْجِنَّ لَوْ كَانُوا يَعْلَمُونَ الْغَيْبَ مَا لَبِثُوا حَوْلًا فِي الْعَذَابِ الْمُهِينِ «وَكَانَ ابْنُ عَبَّاسٍ يَقْرَؤُهَا هَكَذَا فَشَكَرَتِ الْجِنُّ الْأَرَضَةَ فَكَانَتْ تَأْتِيهَا بِالْمَاءِ حَيْثُ كَانَتْ»