Revelation 1:19

Write the things which you see, even those which are, and the things which shall be hereafter.

Revelation 10:4

And when the seven thunders had spoken, I was about to write: and I heard a voice from heaven, saying, Seal up what the seven thunders have spoken, and write it not.

Treasury of Scripture Knowledge

Summary

In the first year of Belshazzar king of Babylon Daniel had a dream and visions of his head upon his bed: then he wrote the dream, and told the sum of the matters.

Bible References

He wrote

Revelation 1:19
Write the things which you see, even those which are, and the things which shall be hereafter.
Revelation 10:4
And when the seven thunders had spoken, I was about to write: and I heard a voice from heaven, saying, Seal up what the seven thunders have spoken, and write it not.