Who Was Rahab's Son? Joshua 6:22–25
The question about Rahab's son is not answered in Joshua 6:22–25, which lists her father, mother, brothers and relatives but no child. What the passage does say is that Rahab and her household were saved alive and that she lived in the middle of Israel.
Why God Destroyed Jericho: Devoted to Yahweh
Joshua 6 explains Jericho's destruction in covenant and worship terms, not military ones. The city is devoted to Yahweh and its wealth goes to his treasury, while Rahab and her household are spared.
Who Was Rahab's Husband? Joshua 6:22–25
The Jericho account never names a husband for Rahab. It lists her father's household as the ones brought out, and it grounds her rescue in her hiding of the spies.