Ad majorem Dei gloriam
From Ignatian Wiki
Ad maiorem Dei gloriam or ad majorem Dei gloriam (when an "i" functions as a consonant in Latin, it is often represented with a "j"), also known by the abbreviation AMDG, is the motto of the Society of Jesus, commonly referred to as the Jesuits. The society is a religious order within the auspices of the Roman Catholic Church. In Latin, the motto means "For the greater glory of God" and is believed to have been coined by the founder of the religious order, Saint Ignatius of Loyola, as a cornerstone of the society's philosophy.
This phrase is the motto of many Jesuit educational institutions, including eight of the twenty-eight members of the Association of Jesuit Colleges and Universities, and many high schools worldwide. In Georgetown University's Gaston Hall, the phrase is followed by "inque hominum salutem," making the full phrase state "for the greater glory of God and the salvation of humanity."
Many Jesuit schools ask students to write the initialism at the tops of their papers, to remind them that even their schoolwork is "For the Greater Glory of God."