It was the practice of the Prophet (peace and blessings be upon him):
"When he (peace and blessings be upon him) finished the prayer, he would turn away from the qiblah to the right or the left."
Hadith Referenceصحیح الجامع الصغیر / حرف الكاف / 4687
Hadith Gradingالألبانی:صحيح
Hadith Takhrij[د] عن يزيد بن الأسود. صحيح أبي داود ٦٢٧: حم، ن، ت، قط، هق.