Berean Standard Bible (BSB)
As you lay on your bed, O king, your thoughts turned to the future, and the Revealer of Mysteries made known to you what will happen.
World English Bible (WEB)
as for you, O king, your thoughts came into your mind on your bed, what should happen hereafter; and he who reveals secrets has made known to you what shall happen.
Strong's King James
As for thee{H607}, O king{H4430}, thy thoughts{H7476} came{H5559}{(H8760)} into thy mind upon{H5922} thy bed{H4903}, what{H4101} should come to pass{H1934}{(H8748)} hereafter{H311}{H1836}: and he that revealeth{H1541}{(H8751)} secrets{H7328} maketh known{H3046}{(H8684)} to thee what{H4101} shall come to pass{H1934}{(H8748)}.
The F.O.G *
You oh king [were] on your bed, [and] your thoughts came up of what would happen after this, and He who reveals mysteries has made known to you what will happen.
The F.O.G Message *
Young's Literal Translation
Thou, O king, thy thoughts on thy bed have come up concerning that which is to be after this, and the Revealer of secrets hath caused thee to know that which is to be.