Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
bukhari:2947Yaḥyá b. Bukayr > al-Layth > ʿUqayl > Ibn Shihāb > ʿAbd al-Raḥman b. ʿAbdullāh b. Kaʿb b. Mālik > ʿAbd

Whenever Messenger of Allah ﷺ intended to lead a Ghazwa, he would use an equivocation from which one would understand that he was going to a different destination .  

البخاري:٢٩٤٧حَدَّثَنَا يَحْيَى بْنُ بُكَيْرٍ حَدَّثَنَا اللَّيْثُ عَنْ عُقَيْلٍ عَنِ ابْنِ شِهَابٍ قَالَ أَخْبَرَنِي عَبْدُ الرَّحْمَنِ بْنُ عَبْدِ اللَّهِ بْنِ كَعْبِ بْنِ مَالِكٍ أَنَّ عَبْدَ اللَّهِ بْنَ كَعْبٍ ؓ وَكَانَ قَائِدَ كَعْبٍ مِنْ بَنِيهِ قَالَ سَمِعْتُ كَعْبَ بْنَ مَالِكٍ حِينَ تَخَلَّفَ

عَنْ رَسُولِ اللَّهِ ﷺ وَلَمْ يَكُنْ رَسُولُ اللَّهِ ﷺ يُرِيدُ غَزْوَةً إِلاَّ وَرَّى بِغَيْرِهَا