This Bible contradiction is from the Skeptic's Annotated Bible.
She was saved by faith.
Hebrews 11:31 View context
By faith the harlot Rahab perished not with them that believed not, when she had received the spies with peace.
She was saved by works.
James 2:25 View context
Likewise also was not Rahab the harlot justified by works, when she had received the messengers, and had sent [them] out another way?