This prayer comes from the Book of Common Prayer’s Compline (late night) service.†
Be present, O merciful God, and protect us through the hours of this night, so that we who are wearied by the changes and chances of this life may rest in your eternal changelessness; through Jesus Christ our Lord. Amen.
† The Book of Common Prayer (New York: Seabury Press, 1979), 133.