When we died only all the good deeds we perform, the charity, the lesson we teach people etc will come along with us in the graveyard. My question is if the lesson we teach people we ask them to pay money and another case we teach for the sake of Allah. is it both are at the same level as our saviour in graveyard?

The one we do for the sake of Allah will carry more weight after our death than the one who get paid for.
This doesn’t mean that the one you get paid for will not give you some reward. You will get some reward depending on how you perform it.