Sahih Muslim 708
Sahih Muslim · Book 6: The Book of Prayer - Travellers · It is permissible to leave to the right or left after finishing the prayer
Anas reported:
حَدَّثَنَا أَبُو بَكْرِ بْنُ أَبِي شَيْبَةَ ، وَزُهَيْرُ بْنُ حَرْبٍ ، قَالاَ حَدَّثَنَا وَكِيعٌ ، عَنْ سُفْيَانَ ، عَنِ السُّدِّيِّ ، عَنْ أَنَسٍ ، أَنَّ النَّبِيَّ صلى الله عليه وسلم كَانَ يَنْصَرِفُ عَنْ يَمِينِهِ .
The Apostle of Allah (ﷺ) used to turn to the right (at the end of the prayer).