Sunan An-Nasa'i - سنن النسائي
9. The Book of the Qiblah - كتاب القبلة
2) Chapter: Situation in which it is permissible to face a direction other than the Qibla
It was narrated that Ibn Umar said:
"The messenger of Allah (peace be upon him) used to pray atop his mount while travelling, facing whatever direction it was facing." (One of the narrators) Malik said: "Abdullah bin Dinar said: and Ibn Umar used to do likewise".
2) باب الْحَالِ الَّتِي يَجُوزُ عَلَيْهَا اسْتِقْبَالُ غَيْرِ الْقِبْلَةِ
أَخْبَرَنَا قُتَيْبَةُ، عَنْ مَالِكِ بْنِ أَنَسٍ، عَنْ عَبْدِ اللَّهِ بْنِ دِينَارٍ، عَنِ ابْنِ عُمَرَ، قَالَ كَانَ رَسُولُ اللَّهِ صلى الله عليه وسلم يُصَلِّي عَلَى رَاحِلَتِهِ فِي السَّفَرِ حَيْثُمَا تَوَجَّهَتْ بِهِ . قَالَ مَالِكٌ قَالَ عَبْدُ اللَّهِ بْنُ دِينَارٍ وَكَانَ ابْنُ عُمَرَ يَفْعَلُ ذَلِكَ .