NET
26 At that time Joshua made this solemn declaration: “The man who attempts to rebuild this city of Jericho will stand condemned before the Lord. He will lose his firstborn son when he lays its foundations and his youngest son when he erects its gates!”
Darby
26 And Joshua swore at that time, saying, Cursed be the man before Jehovah who shall rise up and build this city Jericho! In his first-born shall he lay its foundation, and in his youngest son shall he set up its gates.
KJV
26 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.