Joshua 6:26

26 Then Joshua made this oath: "Anyone who tries to rebuild this city of Jericho will be cursed by the Lord. The one who lays the foundation of this city will lose his oldest son, and the one who sets up the gates will lose his youngest son."

Joshua 6:26 In-Context

24 Then Israel burned the whole city and everything in it, but they did not burn the things made from silver, gold, bronze, and iron. These were saved for the Lord.
25 Joshua saved Rahab the prostitute, her family, and all who were with her, because Rahab had helped the men he had sent to spy out Jericho. Rahab still lives among the Israelites today.
26 Then Joshua made this oath: "Anyone who tries to rebuild this city of Jericho will be cursed by the Lord. The one who lays the foundation of this city will lose his oldest son, and the one who sets up the gates will lose his youngest son."
27 So the Lord was with Joshua, and Joshua became famous through all the land.
Scripture taken from the New Century Version. Copyright © 1987, 1988, 1991 by Thomas Nelson, Inc. Used by permission. All rights reserved.