In April 323, Alexander the Great entered Babylon. The Chaldaeans, i.e., the famous astrologers working in the Esagila temple complex, came with warnings that he would die if he entered the city without due precautions.
Arrian of Nicomedia describes this his Anabasis, sections 7.16.5-17.5. They are given here in the translation by Aubrey de Sélincourt.
Alexander and the Chaldaeans
[7.16.5] On his march to Babylon, Alexander, after crossing the Tigris, was met by some Wise Men of the Chaldaeans, who drew him aside and begged him to go no further, because their god Bêlnote had foretold that if he entered the city at that time, it would prove fatal to him.
[7.16.6] Alexander replied by quoting to them the line of [the playwright] Euripides: "Prophets are best who make the truest guess."
"My lord," said the Chaldaeans, "look not to the west;note do not march westward with your army; but turn about and go eastward."
[7.16.7] But this was not easy for Alexander to do, as the country to the east was impracticable for troops. The truth was that fate was leading him to the spot where it was already written that he should die.
[7.17.1] Alexander had some suspicion that the Chaldaeans' attempt to prevent him from marching to Babylon on that occasion was not, in fact, based upon a prophecy of impending disaster at all; on the contrary, its object, he felt, might well be to secure their own advantage. In Babylon stood the great temple of Bêl, a huge edifice of baked bricks set in bitumen.note
[7.17.2] Like the other shrines in the city, it had been destroyed by Xerxes on his return from Greece,note and Alexander had proposed to restore it.note
According to some accounts, he intended to rebuild upon the original foundations, and for that reason the Babylonians had had instructions to clear the site. Others say he intended a still larger building than the old one.
[7.17.3] The workmen, however, once he was out of the way, dawdled over their job, so he proposed to set all his own troops to work upon it.
[7.17.4] Now a great deal of land and considerable treasure had been devoted by the Assyrian kings to the god Bêl, and from this the temple, in the old days, used to be maintained and the sacrifices offered to the god. But at the time of which I am speaking the Chaldaeans themselves had the disposal of the god's property, as there was nothing upon which the income could be spent. For these reasons it had occurred to Alexander that they night not want him to enter the city, lest the rebuilding of the temple might be rapidly completed and they, in consequence, lose the benefit of the money.
[7.17.5] Nevertheless, Aristobulus tells us that Alexander, so far as changing his direction was concerned, was ready to yield to their wishes; on the first day he halted his men on the Euphrates, and on the next advanced, keeping the river on his right hand, with the intention of first passing the western section of the city and then wheeling to the eastward.
[7.17.6] But it turned out that by this route the going was too bad for the army to get through, as anyone approaching the west side of the city and then turning east is bound to get bogged down in swampy land. The result was that Alexander disobeyed the divine command - half deliberately, and half because he could not help it.