Sayyiduna Jabir bin Abdullah (may Allah be pleased with both of them) narrates: We participated in a battle along with the Prophet Muhammad (peace be upon him), and the Prophet (peace be upon him) would perform voluntary prayers on his mount, which would be facing towards the east. But when he had to perform an obligatory prayer, he would dismount and perform it facing the Qiblah.