It is narrated from Hazrat Anas (may Allah be pleased with him) that when the Prophet (peace and blessings be upon him) wished to offer voluntary prayers during travel on his camel, he would say the takbeer facing the qiblah, then leave it, and whichever direction it (the camel) was facing, he would continue to pray in that direction.