After reading an interesting scientific article concerning how mammals apparently dream prior to birth, it reminded me of Rabbi Simlai in Niddah 30b discussing how each Jewish soul learns the entire Torah prior to its birth.
Are there other sources within Torah literature that discuss the occupation of the soul prior to its descent and birth into this world? Is there a differentiation between the Jewish soul and other souls? Does this even relate to the souls of all animals like the scientific observation suggests?