"I Saw A City In The Clouds."
Do you think Yoda planted that thought in Luke's head (via the Force) or did Luke just happen to have that vision himself?
Considering his inexperience in both the Living Force and the Here-and-Now; I believe either Yoda or Obiwan planted it in him to test/see what he would do in such a dilemma...