I really do love this quote, and agree with the sentiment it espouses. Virtue for the sake of virtue is something anyone can aspire towards, and is one of the central principals of virtue ethics. That one can attain immortality of sorts through memory of ones descendants is something I do agree with. There is a problem however; there is no indication that Marcus Aurelius ever said anything of the sort. Rather, there are at least two dead giveaways within the quote which betray that he would not have written it.
I'll start with the first one, Marcus Aurelius was a devout polytheist and there is no indication in his thoughts about doubting the existence of the gods, (II.11, trans. Martin Hammond). A great deal of his thoughts were centered on the role the gods played in the affairs of men. So it would be difficult to believe, that despite his very apparent devotion and certitude which is presented throughout the entirety of "The Meditations", he would have qualms about the existence of gods.
Secondly and perhaps the more obvious of the two "tells", is that the quote implies that living on in the memories of your loved ones is something to aspire to, through leading a virtuous life. He dismisses this notion outright, to quote but a few:
"Everything material rapidly disappears in the universal substance; every cause is rapidly taken up into the universal reason; and the memory of everything is rapidly buried in eternity." (VII.10, trans. Martin Hammond)
"Soon you will have forgotten all things: soon all things will have forgotten you." (VII.21, trans. Martin Hammond)
"Turn it inside out and see what it is like, what it becomes in age, sickness and death. Life is short both for praiser and praised, for the remembering and the remembered. And this, moreover, in just a cranny of one continent: even here not all are attuned to each other, or even an individual to himself. And the whole earth is a mere point in space." (VIII.21, trans. Martin Hammond)
The notion that memories (or fame) as a basis for action is something he rejects quite unequivocally.
And herein is the problem with not cross checking your sources to see if the person you are quoting, actually said what you're attributing to them. Even a quick Google search will turn up the fact that the quote is uncertain in origin, and only mistakenly attributed to Marcus Aurelius.
A little due diligence goes a long way.