Something very similar from Plato (Phaedo 111e-112d) is cited in Havelock’s essay:
One of the earth-chasms, besides being the largest, is pierced right through the whole earth (…) Into it flow all the rivers in confluence, and out of it they issue again, each afterwards taking on the individual character of the territories through which they happen to flow. The reason for the inflow and outflow of the streams is that the liquid, having no bottom or fundament, hangs suspended in space and moves in tidal waves up and down, and the air and wind about it does the same thing (…) Some waters go right round the earth, coiling once or several times like serpents (…) and sink down as far as they can and come up again. (3:17)