It was the practice of the Prophet (peace and blessings be upon him):
"When he (peace and blessings be upon him) walked, it was as if he (peace and blessings be upon him) were leaning on something."
Hadith Referenceصحیح الجامع الصغیر / حرف الكاف / 4785