The Master said, A gentleman, in his plans, thinks of the Way; he does not think how he is going to make a living. Even farming sometimes entails 5 times of shortage; and even learning may incidentally lead to high pay. But a gentleman's anxieties concern the progress of the Way; he has no anxiety concerning poverty.
Riches and honor are what everyone desires, but if they can be gained only by doing evil, they must not be held. Don't worry about not being in office, worry about qualifying yourself for office. Don't worry that no one knows you, but seek to be worthy of being known.
Kong Qiu, or Master Kong as he was known, did not live to see his days of glory. During his lifetime, his views were received with scorn. But that was about two thousand five hundred years ago. A handful of his dedicated followers passed on Confucius' teachings to future generations.
After Confucius' death, his followers published his teachings in the book, The Analects of Confucius.
A reasonable man adjusts himself to the world. An unreasonable man expects the world to adjust itself to him. Therefore all progress is made by unreasonable people.