Abu Ja'far Muhammad bin Ali said that his father, Ali bin Husayn, used to pray on his mount while travelling, whichever direction it faced.