First, one needs to be saved, and in order to be saved, the Bible says
"If you declare with your mouth, “Jesus is Lord,” and believe in your heart that God raised him from the dead, you will be saved. For it is with your heart that you believe and are justified, and it is with your mouth that you profess your faith and are saved." - Romans 10:9-10
And then, all that are saved will be rewarded according to their deeds
“Look, I am coming soon! My reward is with me, and I will give to each person according to what they have done." - Rev. 22:12
And for those who are not saved
“Blessed are those who wash their robes, that they may have the right to the tree of life and may go through the gates into the city. Outside are the dogs, those who practice magic arts, the sexually immoral, the murderers, the idolaters and everyone who loves and practices falsehood." Rev. 22:14-15