ENOfficial
‘Abdallah al-Khatmi told that when God’s messenger wanted to commend an army he said, “I entrust to God your religion, what you are responsible for, and your final deeds.” Abu Dawud transmitted it.
Source: sunnah.com
Other translations
Arabic
وَعَنْ عَبْدِ اللَّهِ الْخَطْمِيِّ قَالَ: كَانَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ إِذَا أَرَادَ أَنْ يَسْتَوْدِعَ الْجَيْشَ قَالَ: «أَسْتَوْدِعُ اللَّهَ دِينَكُمْ وأمانتكم وخواتيم أَعمالكُم» . رَوَاهُ أَبُو دَاوُد
sunnah.com