Sahih Muslim

Sahih Muslim 708 b

It is permissible to leave to the right or left after finishing the prayer
Arabic hadith text
حَدَّثَنَا أَبُو بَكْرِ بْنُ أَبِي شَيْبَةَ، وَزُهَيْرُ بْنُ حَرْبٍ، قَالاَ حَدَّثَنَا وَكِيعٌ، عَنْ سُفْيَانَ، عَنِ السُّدِّيِّ، عَنْ أَنَسٍ، أَنَّ النَّبِيَّ صلى الله عليه وسلمكَانَ يَنْصَرِفُ عَنْ يَمِينِهِ ‏.‏
Translation
Anas reported

The Apostle of Allah (ﷺ) used to turn to the right (at the end of the prayer).