And it came to pass in the morning that his spirit was troubled, and he sent and called for all of Egypt’s magicians and wise men. Pharaoh told them his dreams, but there was no one who could interpret them to Pharaoh.

“spirit.” Here the word “spirit” is being used of Pharaoh’s mental state; his thoughts and emotions.
[For more on all the various uses of “spirit,” see Appendix 6, “Usages of ‘Spirit.’”]