Edmund Burke said this quote

Society is indeed a contract ... it becomes a participant not only between those who are living, those who are dead, and those who are to be born.