Surah Al-Ahzaab

33:7

وَإِذْ أَخَذْنَا مِنَ ٱلنَّبِيِّۦنَ مِيثَٰقَهُمْ وَمِنكَ وَمِن نُّوحٍۢ وَإِبْرَٰهِيمَ وَمُوسَىٰ وَعِيسَى ٱبْنِ مَرْيَمَ ۖ وَأَخَذْنَا مِنْهُم مِّيثَٰقًا غَلِيظًۭا

And [mention, O Muhammad], when We took from the prophets their covenant and from you and from Noah and Abraham and Moses and Jesus, the son of Mary; and We took from them a solemn covenant.

Tafsir 33:7

O Messenger, remember when I took a firm covenant from the prophets that they will worship Allah alone and not associate any partner with Him, and that they will convey the revelation sent to them. And I have taken it especially from you, and from Noah, Abraham, Moses, Jesus son of Mary. I have taken a firm covenant from them to fulfil the conveying of Allah’s messages they have been entrusted with.