It was narrated by Muhammad Ibn Tarif, narrated by Muhammad Ibn Fadil, narrated by Abu Hayan, narrated by Atta, narrated by Ibn Umar who said, "We were with the prophet – may Allah’s prayer and peace be upon him – on a journey when we were approached by a Bedouin.
When the prophet saw him he said to him, ‘To where are you heading?’ The Bedouin said, ‘To my family.’ The prophet asked, ‘Do you wish to have a good thing?’ The Bedouin asked, ‘What would that be?’ The prophet replied, ‘To bear witness that there is no god but Allah alone, who has no partners and that Muhammad is His servant and messenger.’
The Bedouin asked, ‘And who will testify to what you say?’ The prophet answered, ‘This tree will.’ So the prophet called to the tree that was in a valley by the seashore and it came to him, crawling on the ground until it stood up right between his hands. So the prophet made the tree say the Shahada three times and then it returned to where it was planted before.
The Bedouin then returned to his people and said, ‘If they follow me I will bring them (to Muhammad) otherwise I will return to him myself."