Sure Aal-i-Imraan

3:46

وَيُكَلِّمُ ٱلنَّاسَ فِى ٱلْمَهْدِ وَكَهْلًۭا وَمِنَ ٱلصَّٰلِحِينَ

Und er wird in der Wiege zu den Menschen sprechen und im Mannesalter und einer der Rechtschaffenen sein."

Tafsir 3:46

This child will miraculously speak to people when he is a small baby, as well as when he grows up and becomes a man. He will tell them what is best for them in their religious and worldly affairs. He will also be one of those who are righteous in their words and actions.