Joshua charged them with an oath at that time, saying, Cursed be the man before Yahweh, that rises up and builds this city Jericho: with the loss of his firstborn shall he lay the foundation of it, and with the loss of his youngest son shall he set up the gates of it.
he shall lay the foundation thereof in his firstborn, and in his youngest [son] shall he set up the gates of it; that is, while he is laying, or as soon as he has laid the foundation of the city, his eldest son should die; and as he went on with the building, other sons of his, if he had more than two, should be taken away by death likewise; and by the time he has finished it, signified by setting up the gates of it, both for ornament and security, his youngest and last son should die also; so that his whole posterity should be taken alway, as a curse of God upon him for rebuilding the city; which was fulfilled in Hiel the Bethelite, the rebuilder of this city in the times of Ahab, five or six hundred years after this adjuration was made, when either it was forgotten, or, however, little regarded: Maimonides observes g, that this was made that the miracle might remain in perpetual memory, for whoever should see the wall sunk in the earth, it would be plain and clear to him that this was not the form of a building demolished, but that it fell by a miracle; and yet this city became a very flourishing one in later times; we soon hear of the school of the prophets in it, 2 Kings 2:5; here, Strabo h says, was a royal palace, where, as Josephus i relates, Herod died, and who speaks of an amphitheatre and hippodrome in it; in this city sometimes the sanhedrim sat, and a great number of the stationary priests dwelt, even half a station, twelve thousand of them, all which is observed by Dr. Lightfoot k; our Lord himself honoured it with his presence,