This quote is saying that if you do good things, you will become virtuous, and if you have a peaceful mind, then you will become wise. To be successful in life, you need to have wisdom and morality to be able to navigate through the ups and downs. Good deeds will lead you to be a good and moral person, and a peaceful mind will help you gain wisdom. With both of these elements, you will have a strong foundation to succeed in life.