King James Version
As for thee, O king, thy thoughts came into thy mind upon thy bed, what should come to pass hereafter: and he that revealeth secrets maketh known to thee what shall come to pass.English Standard Version
To you, O king, as you lay in bed came thoughts of what would be after this, and he who reveals mysteries made known to you what is to be.New International Version
"As you were lying there, O king, your mind turned to things to come, and the revealer of mysteries showed you what is going to happen.