AN5.159 — Udāyī Sutta
Thus have I heard. At one time, the Blessed One was dwelling at Kosambi in Ghosita's Park. At that time, the Venerable Udāyī was sitting surrounded by a large assembly of householders, teaching the Dhamma. The Venerable Ānanda saw the Venerable Udāyī sitting surrounded by a large assembly of householders, teaching the Dhamma. Seeing this, he approached the Blessed One, and after paying homage, sat down to one side. While sitting there, the Venerable Ānanda said to the Blessed One, Venerable sir, the Venerable Udāyī is teaching the Dhamma surrounded by a large assembly of householders.
It is not easy, Ānanda, to teach the Dhamma to others. When teaching the Dhamma to others, Ānanda, one should establish five things within oneself. What are the five? One should teach the Dhamma to others thinking, I will speak in a gradual manner; one should teach the Dhamma to others thinking, I will speak with a demonstration; one should teach the Dhamma to others thinking, I will speak out of compassion; one should teach the Dhamma to others thinking, I will speak without seeking material gain; one should teach the Dhamma to others thinking, I will speak without harming myself or others. It is not easy, Ānanda, to teach the Dhamma to others. When teaching the Dhamma to others, Ānanda, one should establish these five things within oneself.