This is the prayer that is used at the closing of many Lutheran funeral services. It is included in “Minsterial Acts” published by the AFLC.
“Almighty, everlasting God, because of our sin we must die and return to the ground, so teach us to number our days that we may gain a heart of wisdom. Grant us a true faith in Your only begotten Son, Jesus Christ, who was delivered for our offenses, was raised again for our justification and reigns to all eternity. Help us by Your grace that we may die daily unto sin and live according to Your Holy Will, so that when the hour of death shall come, we may be prepared through faith in Your Word for a peaceful departure. Receive our souls unto Yourself, and grant that at the last day our bodies may rise again from the grave unto everlasting life; through Jesus Christ our Lord. Amen
For more posts about prayer see:
Eleanor Roosevelt — A Wise Prayer