Sunan Ibn Majah, Book 24, Hadith 74 (Ibn Majah 2828)
It was narrated that Ibn ‘Umar said:
“When the Messenger of Allah (ﷺ) would dispatch troops, he would say to the leader: ‘I commend to Allah’s keeping your religious commitment, your dignity and the end of your deeds.’”