It was Yoda’s dying wish that Luke pass on what he had learned.
“There is another Sky… wal… ker.”
He was to find the other Skywalker and pass on what he had learned. No one else was specified. But prior to that the focus was entirely on defeating Vader and the Emperor. That was the endgame of ROTJ for Luke.