It's from Zhang Zai's Quotations of Hengqu, and the original text is as follows: "Make a heart for heaven and earth, make a life for the people, carry forward the past and learn from the past, and make peace for all generations." :
"Make a heart for heaven and earth, make a life for the people, carry forward the past and learn from the past, and create peace for all generations" is a famous saying of Zhang Zai in the Northern Song Dynasty. Feng Youlan, a contemporary philosopher, called it "four sentences in a horizontal canal". Because of its conciseness, it has always been praised by people.
Zhang Zai (12-177) was a great scholar, philosopher and one of the founders of Neo-Confucianism in the Northern Song Dynasty. He was the founder of Guan Xue, a branch of Neo-Confucianism, and was the sage of Feng. He was the 38th in the Western Temple of Confucius. His ancestral home was Daliang (now Kaifeng, Henan Province), and he was a migrant in Hengqu Town, Jixian County (now Meixian County, Shaanxi Province). Scholars called him Mr. Hengqu. Song Renzong Jiayou was a scholar in the second year, and he was awarded the book and knowledge of Chongwen College. Later, his younger brother supervised Zhang Jian, who was demoted for opposing Wang Anshi's political reform, and Hengqu resigned. After returning home, he devoted himself to reading and giving lectures, creating "Guan Xue", which was famous for a while. He died in Tongguan in the tenth year of Xining, Song Shenzong (177).