Contradiction with Exodus 20:16
This verse instructs not to bear false witness, while Joshua 2:3 involves Rahab misleading the king's messengers.
Exodus 20:16: Thou shalt not bear false witness against thy neighbour.
Contradiction with James 2:25
This verse praises Rahab for her faith and actions in hiding the spies, contradicting the presumed wrongdoing in Joshua 2:3.
James 2:25: Likewise also was not Rahab the harlot justified by works, when she had received the messengers, and had sent [them] out another way?