Thawban reported,

The Messenger of Allah ﷺ said, "It is not lawful for anyone to look into the inside of another's house until he asks permission. If he looks, he has effectively entered. Nor should anyone lead a people in prayer and single himself out with a supplication to their exclusion. If he does so, he has betrayed them. And no one should stand for prayer while needing to relieve himself."

Tirmidhi 357

Hasan

حدثنا علي بن حجر حدثنا إسمعيل بن عياش حدثني حبيب بن صالح عن يزيد بن شريح عن أبي حي المؤذن الحمصي

عن ثوبان

عن رسول الله ﷺ قال لا يحل لامرئ أن ينظر في جوف بيت امرئ حتى يستأذن فإن نظر فقد دخل ولا يؤم قوما فيخص نفسه بدعوة دونهم فإن فعل فقد خانهم ولا يقوم إلى الصلاة وهو حقن

الترمذي 357حسن
Contents
Reference
Commentary
Ayat
Collection
Jami Tirmidhi
Book
Prayer
Chapter
Dislike of the imam supplicating exclusively for himself
Numbering
Darussalam 357
Tirmidhi 357