6:21 Young and old - Being commanded to do so by the sovereign Lord of every man's life; and being informed by God before that the Canaanites were abominably wicked, and deserved the severest punishments. As for the infants, they were guilty of original sin, and otherwise at the disposal of their creator; but if they had been wholly innocent, it was a great favour to them to take them away in infancy, rather than reserve them to those dreadful calamities which those who survived them were liable to.
6:17-27 Jericho was to be a solemn and awful sacrifice to the justice of God, upon those who had filled up the measure of their sins. So He appoints, from whom, as creatures, they received their lives, and to whom, as sinners, they had forfeited them. Rahab perished not with them that believed not, Heb 11:31. All her kindred were saved with her; thus faith in Christ brings salvation to the house, Ac 14:31. She, and they with her, were plucked as brands from the burning. With Rahab, or with the men of Jericho; our portion must be assigned, as we posses or disregard the sign of salvation; even faith in Christ, which worketh by love. Let us remember what depends upon our choice, and let us choose accordingly. God shows the weight of a Divine curse; where it rests there is no getting from under it; for it brings ruin without remedy.