for the good of (someone or something)
To benefit or serve someone or something. Honey, you really need to get more exercise for the good of your health. All of the profits raised at the auction are for the good of the school.
for the good of someone or something
for the benefit, profit, or advantage of someone or something. The president said the strict drug laws were for the good of the country. David took a second job for the good of his family.