I believe it’s in Lamentations where God speaks through Solomon and explains the Spirit of the Animals descends to the Earth and the Soul of Man ascends to the Heavens.
I just read thru it; but did not see anything like what you describe; but I did see this:
Lamentations :22
Your punishment will end, Daughter Zion;
he will not prolong your exile.
But he will punish your sin, Daughter Edom,
and expose your wickedness.