Aim for the larger good

त्यजेदेकं कुलस्यार्थे ग्रामस्यार्थे कुलं त्यजेत् ।
ग्रामं जनपदस्यार्थे ह्यात्मार्थे पृथिवीं त्यजेत् ॥

Transliteration:
tyajedekaṃ kulasyārthe grāmasyārthe kulaṃ tyajet ।
grāmaṃ janapadasyārthe hyātmārthe pṛthivīṃ tyajet ॥

Meaning:
Give up one person for the sake of the lineage;
For the sake of a village, a lineage can be given up.
Give up a village for the benefit of the region;
For the sake of the soul, give up the pleasures of the earth.

Three different sources are listed for this quote:
Maha Bharata Adi. 115. 36 ; Sabha. 61. 11
Hitopadeśa, Mitralābha
Chanakya Neeti, Neeti 3 Rule 10