And later, some Judahite actually married the former prostitute. God’s long-term plans for her required multiple men to play their parts.
Some people don’t think Rahab was a prostitute.
She may have been a inn-keeper that allowed prostitution to be carried on in her establishment.
https://confidenceandjoy.com/was-rahab-a-prostitute/