Ezekiel was sitting in his house. Then was Ezekiel's spirit leaving his body in Ezekiel 8:
1 In the sixth year, in the sixth month on the fifth day, while I was sitting in my house and the elders of Judah were sitting before me, the hand of the Sovereign Lord came on me there. 2I looked, and I saw a figure like that of a man. From what appeared to be his waist down he was like fire, and from there up his appearance was as bright as glowing metal. 3He stretched out what looked like a hand and took me by the hair of my head. The Spirit lifted me up between earth and heaven and in visions of God he took me to Jerusalem, to the entrance of the north gate of the inner court, where the idol that provokes to jealousy stood. 4And there before me was the glory of the God of Israel, as in the vision I had seen in the plain.
John was on the Island of Patmos. Then was John's spirit leaving his body in Revelation 17:
1 One of the seven angels who had the seven bowls came and said to me, “Come, I will show you the punishment of the great prostitute, who sits by many waters. 2With her the kings of the earth committed adultery, and the inhabitants of the earth were intoxicated with the wine of her adulteries.” 3Then the angel carried me away in the Spirit into a wilderness. There I saw a woman sitting on a scarlet beast that was covered with blasphemous names and had seven heads and ten horns.
A 3rd example was pointed out by Nigel's comment:
2 Corinthians 12:1 I will go on to visions and revelations from the Lord. 2I know a man in Christ who fourteen years ago was caught up to the third heaven. Whether it was in the body or out of the body I do not know—God knows. 3And I know that this man—whether in the body or apart from the body I do not know, but God knows— 4was caught up to paradise and heard inexpressible things, things that no one is permitted to tell.
According to Paul, some kind of out-of-body experience is possible without causing death.
Can a person's spirit supernaturally leave its body temporarily?