You could ask the same question about Lazarus by Rabbi Joshua (aka Jesus) from the Christian’s replacement Torah (aka “New Testament”) or the boy who was raised from the dead Elisha the Prophet as written in the Tanach.
I tend to say that their soul goes back to from where it came before 40 days after conception.
Can you please expound on this. And, why 40 days after conception?