حَدَّثَنَا سَعِيدٌ قَالَ: نا إِسْمَاعِيلُ بْنُ عَيَّاشٍ، عَنْ شُعَيْبِ بْنِ دِينَارٍ، قَالَ: سَمِعْتُ عَبْدَ الْوَهَّابِ بْنَ بُخْتٍ الْمَكِّيَّ، يَقُولُ: «إِذَا كَانَتِ الْمُسَايَفَةُ فَإِنِ اسْتَطَاعُوا صَلَّوْا قِيَامًا، وَإِلَّا فَرُكْبَانًا، وَإِلَّا فَالتَّكْبِيرُ، فَإِنْ لَمْ يَسْتَطِيعُوا فَلَا يَدَعُوهَا فِي أَنْفُسِهِمْ»
Abdul Wahab bin Bakht Makki (may Allah have mercy on him) said: When there is fighting, if you have the strength, then perform the prayer standing; otherwise, while riding. If that is also not possible, then say the takbeer. If even that is not possible, then at least keep the intention of prayer in your heart.