Sayyiduna Ibn Umar (may Allah be pleased with them both) narrates: the Prophet (peace and blessings be upon him) would pray in whichever direction his mount was facing.