Jami` at-Tirmidhi, Book 1, Hadith 9 (Tirmidhi 9)

Jabir bin Abdullah said:

"The Prophet prohibited us from facing the Qiblah while urinating. Then i saw him facing it a year before he died."