Righteous people work for the good of all, pope says