Matthew 10:41-42

He that receives a prophet in the name of a prophet shall receive a prophet's reward, and he that receives a righteous man in the name of a righteous man shall receive a righteous man's reward.

Matthew 25:40

And the king shall answer and say to them, I tell you truly, that inasmuch as you have done it to one of the least of these my brothers, you have done it to me.

1 Corinthians 2:7

but we speak a wisdom of God hid in mystery, which God appointed from eternity for our glory,

1 Corinthians 16:22

If any one is not a friend to the Lord, let him be accursed. The Lord comes.

Galatians 3:10

For as many as are of works of the law are under a curse; for it is written, Cursed is every one that continues not in all things written in the book of the law to do them.

Galatians 3:12

but the law is not of faith, but he that does these things shall live by them.

Hebrews 6:10

For God is not unjust, to forget your work, and the love which you showed for his name, having served the saints and [still] serving them.

Hebrews 11:31

By faith Rahab the harlot escaped destruction with the disobedient, having received the spies in peace.

James 2:25

And in like manner also was not Rahab the harlot justified by works, when she received the messengers and sent them out another way?

Treasury of Scripture Knowledge

Summary

And the city shall be accursed, even it, and all that are therein, to the LORD: only Rahab the harlot shall live, she and all that are with her in the house, because she hid the messengers that we sent.

Bible References

Accursed

1 Corinthians 2:7
but we speak a wisdom of God hid in mystery, which God appointed from eternity for our glory,
1 Corinthians 16:22
If any one is not a friend to the Lord, let him be accursed. The Lord comes.
Galatians 3:10
For as many as are of works of the law are under a curse; for it is written, Cursed is every one that continues not in all things written in the book of the law to do them.

Because

Matthew 10:41
He that receives a prophet in the name of a prophet shall receive a prophet's reward, and he that receives a righteous man in the name of a righteous man shall receive a righteous man's reward.
Matthew 25:40
And the king shall answer and say to them, I tell you truly, that inasmuch as you have done it to one of the least of these my brothers, you have done it to me.
Hebrews 6:10
For God is not unjust, to forget your work, and the love which you showed for his name, having served the saints and [still] serving them.
Hebrews 11:31
By faith Rahab the harlot escaped destruction with the disobedient, having received the spies in peace.
James 2:25
And in like manner also was not Rahab the harlot justified by works, when she received the messengers and sent them out another way?