At that time Joshua invoked this solemn oath: “Cursed before the LORD is the man who rises up and rebuilds this city, Jericho; at the cost of his firstborn he will lay its foundations; at the cost of his youngest he will set up its gates.”
KJV
And Joshua adjured [them] at that time, saying, Cursed [be] the man before the LORD, that riseth up and buildeth this city Jericho: he shall lay the foundation thereof in his firstborn, and in his youngest [son] shall he set up the gates of it.
ASV
And Joshua charged them with an oath at that time, saying, Cursed be the man before Jehovah, that riseth up and buildeth this city Jericho: with the loss of his first-born shall he lay the foundation thereof, and with the loss of his youngest son shall he set up the gates of it.