"7Land that drinks in the rain often falling on it and that produces a crop useful to those for whom it is farmed receives the blessing of God. 8But land that produces thorns and thistles is worthless and is in danger of being cursed. In the end it will be burned." - Hebrews 6:7-8
Now, according to the passage above,
in the end, if your 'land' does not produce a crop useful to God, will you be blessed, or will you be cursed and burned?
Does this mean works earn salvation?
No, of course not.
It means, in the end, genuine salvation changes a person from fruitless, thorny, barren land to fruitful land full of the "things that have to do with salvation" (vs.9).
In the end, barren land is the sign of not being saved, just as fruitful land, in the end, is the sign of being saved.