The Messenger of Allah (may peace be updn him) used to do this.
Sahih Muslim Book 7, Hadith 89