Fetching details from the dictionary...
a wise retainer chooses a great lord to serve; a wise bird chooses a good tree in which to roost