Surah Al-Ma'idah 5:117
مَا قُلْتُ لَهُمْ إِلَّا مَآ أَمَرْتَنِى بِهِۦٓ أَنِ ٱعْبُدُوا۟ ٱللَّهَ رَبِّى وَرَبَّكُمْ ۚ وَكُنتُ عَلَيْهِمْ شَهِيدًا مَّا دُمْتُ فِيهِمْ ۖ فَلَمَّا تَوَفَّيْتَنِى كُنتَ أَنتَ ٱلرَّقِيبَ عَلَيْهِمْ ۚ وَأَنتَ عَلَىٰ كُلِّ شَىْءٍ شَهِيدٌ
I said not to them except what You commanded me - to worship Allāh, my Lord and your Lord. And I was a witness over them as long as I was among them; but when You took me up, You were the Observer over them, and You are, over all things, Witness.
Translation: Saheeh International
Tafsir
I only said to them that which You commanded me to say and that is “Worship God my Lord and your Lord.” And I was a witness a watcher over them preventing them from saying what they used to say whilst I was amongst them; …
Excerpt from Tafsir al-Jalalayn, commentary on 5:117, via Quran.com. The reader has the full commentary and 9 more tafsirs.