Yes, he forbade us from facing the qiblah while relieving ourselves, from cleaning ourselves with the right hand, from using fewer than three stones to clean ourselves, and from cleaning ourselves with dung or bone.
حدثنا هناد حدثنا أبو معاوية عن الأعمش عن إبراهيم عن عبد الرحمن بن يزيد قال قيل لسلمان قد علمكم نبيكم ﷺ كل شيء حتى الخراءة
أجل نهانا أن نستقبل القبلة بغائط أو بول وأن نستنجي باليمين أو أن يستنجي أحدنا بأقل من ثلاثة أحجار أو أن نستنجي برجيع أو بعظم
Muslim also narrated it, Purification, Chapter on Cleaning Oneself After Relieving Oneself, hadith 262, from the hadith of Abu Muawiya al-Darir with the same wording. On this subject there are also narrations from Ayesha [Abu Dawud, hadith 40, and Daraqutni graded it sahih, 1/54, 55], Khuzayma bin Thabit [Abu Dawud, hadith 41], Jabir [Ahmad, 3/400, and Ibn Khuzayma graded it sahih, hadith 76], and Khallad bin Saaib from his father [Ibn Adi in al-Kamil, 2/662, and Tabarani in al-Kabir, 7/141, hadith 6623, 6624].