Proposition 30, Book XI of Euclid's Elements states: Parallelepipedal solids which are on the same base and of the same height, and in which the ends of their edges which stand up are not on the same straight lines, equal one another [1]. ("Equal" means "have the same volume".)

[2] Euclid, Elements, T. L. Heath, trans., as The Thirteen Books of Euclid’s Elements, 2nd ed., Book 3, New York: Dover Publications, 1956 pp. 334–336.