New International Version Ecclesiastes 12:
7 before the dust returns to the ground from which it came and the spirit returns to God who gave it.
This is confirmed in Act 7:
54 When the members of the Sanhedrin heard this, they were furious and gnashed their teeth at him. 55But Stephen, full of the Holy Spirit, looked up to heaven and saw the glory of God, and Jesus standing at the right hand of God. 56“Look,” he said, “I see heaven open and the Son of Man standing at the right hand of God.” ...
59 While they were stoning him, Stephen prayed, “Lord Jesus, receive my spirit.” 60Then he fell on his knees and cried out, “Lord, do not hold this sin against them.” When he had said this, he fell asleep.
On the other hand, Isaiah 26:
14 They are now dead, they live no more; their spirits do not rise. You punished them and brought them to ruin; you wiped out all memory of them.
This is my question, Ecclesiastes 3:
21 Who knows if the human spirit rises upward and if the spirit of the animal goes down into the earth?”