Whenever the Prophet (may Allah's peace and blessings be upon him) was on a journey and wanted to offer a voluntary prayer, he would face the Qiblah on his mount while reciting the Takbīr of Ihrām, and then he would pray in whatever direction he was heading to.