Joseph said to his brothers, “I am about to die, but God will take care of you. He will lead you out of this land to the land he promised to Abraham, Isaac, and Jacob.”
The Spirit of Christ was in the prophets, telling in advance about the sufferings of Christ and about the glory that would follow those sufferings. The prophets tried to learn about what the Spirit was showing them, when those things would happen, and what the world would be like at that time.