The prophet Zachariah (Zakarîyâ), father of John the Baptist, is believed by some traditions to have died inside a tree.
Details of Zachariah's Death
According to some Islamic and Jewish traditions, when Zachariah was being pursued, he sought refuge inside a tree, which then miraculously closed around him. His pursuers then sawed the tree in half, killing him. This account is found in sources like the Qisas al-Anbiya (Stories of the Prophets) by Abu Ishaq Ibrahim ibn Mansur al-Naysaburi.
Summary
The prophet Zachariah, father of John the Baptist, is said to have died while hiding in a tree that was then sawn in half.