Three suttas come to mind:
AN 5.159
“It’s not easy to teach the Dhamma to others, Ananda. The Dhamma should be taught to others only when five qualities are established within the person teaching. Which five?
“[1] The Dhamma should be taught with the thought, ‘I will speak step-by-step.’
“[2] The Dhamma should be taught with the thought, ‘I will speak explaining the sequence [of cause & effect].’
“[3] The Dhamma should be taught with the thought, ‘I will speak out of compassion.’
“[4] The Dhamma should be taught with the thought, ‘I will speak not for the purpose of material reward.’
“[5] The Dhamma should be taught with the thought, ‘I will speak without hurting myself or others.’
DN 31
“In five ways should teachers as the southern direction be respected by a student: by rising for them, regularly attending lessons, eagerly desiring to learn, duly serving them, and receiving instruction.
“And, teachers so respected reciprocate with compassion in five ways: by training in self-discipline, ensuring the teachings are well-grasped, instructing in every branch of knowledge, introducing their friends and colleagues, and providing safeguards in every direction."
MN 137
‘There are three foundations of mindfulness that the Noble One cultivates, cultivating which the Noble One is a teacher fit to instruct a group.’ So it was said. And with reference to what was this said?
“Here, bhikkhus, compassionate and seeking their welfare, the Teacher teaches the Dhamma to the disciples out of compassion: ‘This is for your welfare; this is for your happiness.’ His disciples do not want to hear or give ear or exert their minds to understand; they err and turn aside from the Teacher’s Dispensation. With that the Tathāgata is not satisfied and feels no satisfaction; yet he dwells unmoved, mindful, and fully aware. This, bhikkhus, is called the first foundation of mindfulness that the Noble One cultivates, cultivating which the Noble One is a teacher fit to instruct a group.
“Furthermore, bhikkhus, compassionate and seeking their welfare, the Teacher teaches the Dhamma to the disciples out of compassion: ‘This is for your welfare; this is for your happiness.’ Some of his disciples will not hear or give ear or exert their minds to understand; they err and turn aside from the Teacher’s Dispensation. Some of his disciples will hear and give ear and exert their minds to understand; they do not err and turn aside from the Teacher’s Dispensation. With that the Tathāgata is not satisfied and feels no satisfaction, and he is not dissatisfied and feels no dissatisfaction; remaining free from both satisfaction and dissatisfaction, he dwells in equanimity, mindful, and fully aware. This, bhikkhus, is called the second foundation of mindfulness that the Noble One cultivates, cultivating which the Noble One is a teacher fit to instruct a group.
“Furthermore, bhikkhus, compassionate and seeking their welfare, the Teacher teaches the Dhamma to the disciples out of compassion: ‘This is for your welfare; this is for your happiness.’ His disciples will hear and give ear and exert their minds to understand; they do not err and turn aside from the Teacher’s Dispensation. With that the Tathāgata is satisfied and feels satisfaction; yet he dwells unmoved, mindful, and fully aware. This, bhikkhus, is called the third foundation of mindfulness that the Noble One cultivates, cultivating which the Noble One is a teacher fit to instruct a group.
“So it was with reference to this that it was said: ‘There are three foundations of mindfulness that the Noble One cultivates, cultivating which the Noble One is a teacher fit to instruct a group.’