[Machine] About the Prophet ﷺ , he said, "Solomon, the son of David ﷺ , used to see a growing tree in front of him when he stood during Ramadan. He would ask, 'What is your name?' The tree would reply, 'Such and such.' He would then ask, 'What are you for?' The tree would answer, 'For medicine.' So he would write it down, or 'For planting,' so he would plant it. One day, while he was praying, a tree grew in front of him, and he asked, 'What is your name?' It said, 'The thorn tree.' He asked, 'What are you for?' It answered, 'For destroying the people of this house.' Solomon, peace be upon him, said, 'O Allah, cause my kingdom to prevail over the jinn until it is known to humans that the jinn do not know the unseen.' Then he took the tree and carved it into a cane, and leaned on it as if it was a dead stick, while the jinn continued to work. Then they brought it water and the earth swallowed it, so it fell. When it fell, it became clear to humans that the jinn do not know the unseen. Ibn Abbas used to recite it in this way."
عَنِ النَّبِيِّ ﷺ قَالَ كَانَ سُلَيْمَانُ بْنُ دَاوُدَ عَلَيْهِ الصَّلَاةُ وَالسَّلَامُ إِذَا قَامَ فِي رَمَضَانَ رَأَى شَجَرَةً نَابِتَةً بَيْنَ يَدَيْهِ قَالَ مَا اسْمُكِ؟ فَتَقُولُ كَذَا وَكَذَا فَيَقُولُ لِأَيِّ شَيْءٍ أَنْتِ؟ فَتَقُولُ لِكَذَا وَكَذَا فَإِنْ كَانَتْ لِدَوَاءٍ كُتِبَ وَإِنْ كَانَتْ لِغَرْسٍ غُرِسَتْ فَبَيْنَمَا هُوَ يُصَلِّي ذَاتَ يَوْمٍ إِذَا شَجَرَةٌ نَابِتَةٌ بَيْنَ يَدَيْهِ فَقَالَ لَهَا مَا اسْمُكِ؟ قَالَتِ الْخَرْنُوبُ قَالَ لِأَيِّ شَيْءٍ أَنْتِ؟ قَالَتْ لِخَرَابِ أَهْلِ هَذَا الْبَيْتِ فَقَالَ سُلَيْمَانُ عَلَيْهِ الصَّلَاةُ وَالسَّلَامُ اللَّهُمَّ غُمَّ عَلَى الْجِنِّ مَوْتِي حَتَّى يَعْلَمَ الْإِنْسُ أَنَّ الْجِنَّ لَا تَعْلَمُ الْغَيْبَ قَالَ فَنَحَتَهَا عَصًا فَتَوَكَّأَ عَلَيْهَا حَوْلًا مَيِّتًا وَالْجِنُّ تَعْمَلُ فَأَكَلَتْهَا الْأَرَضَةُ فَسَقَطَ فَلَمَّا خَرَّ تَبَيَّنَتِ الْإِنْسُ أَنَّ الْجِنَّ لَا يَعْلَمُونَ الْغَيْبَ قَالَ «فَشَكَرَتِ الْجِنُّ الْأَرَضَةَ فَكَانَتْ تَأْتِيهَا بِالْمَاءِ» وَكَانَ ابْنُ عَبَّاسٍ يَقْرَؤُهَا هَكَذَا