وَإِذْ أَخَذَ اللَّـهُ مِيثَاقَ النَّبِيِّينَ لَمَا آتَيْتُكُم مِّن كِتَابٍ وَحِكْمَةٍ ثُمَّ جَاءَكُمْ رَسُولٌ مُّصَدِّقٌ لِّمَا مَعَكُمْ لَتُؤْمِنُنَّ بِهِ وَلَتَنصُرُنَّهُ ۚ قَالَ أَأَقْرَرْتُمْ وَأَخَذْتُمْ عَلَىٰ ذَٰلِكُمْ إِصْرِي ۖ قَالُوا أَقْرَرْنَا ۚ قَالَ فَاشْهَدُوا وَأَنَا مَعَكُم مِّنَ الشَّاهِدِينَ ﴿٨١﴾
When Allah made the Prophets enter into a covenant: (saying) “If I give you a book and wisdom, then comes to you a messenger verifying what is with you, you shall have to believe in him, and you shall have to support him.” He said, “Do you affirm and accept my covenant in this respect?” They said, “We affirm.” He said, “Then, bear witness, and I am with you among the witnesses.” (Surah Aal ‘Imraan v81)
Allah Ta‘ala addressed all the Ambiyaa (‘alaihimus salaam) and took a pledge from them that they would believe in and assist Nabi Muhammad (sallallahu ‘alaihi wasallam) if he had to come during their lifetime. Also, they were to teach their followers of his coming and invoke them to follow him if they found themselves in his era.
The superiority of Rasulullah (sallallahu ‘alaihi wasallam) over all the other Ambiyaa (‘alaihimus salaam) is evident in this verse. Being the greatest Nabi, his Deen, kitaab and sunnah are also the greatest and have abrogated all other Deens. Hence, no Muslim should ever consider seeking guidance of any nature from another Deen or divine scripture, even if it be the Deen or divine scripture of the Ahlul Kitaab (Jews and Christians).
It is for this very reason that Rasulullah (sallallahu ‘alaihi wasallam) once mentioned to ‘Umar (radhiyallahu ‘anhu) that if Nabi Moosa (‘alaihis salaam) were among them, even he would have to follow the Deen of Rasulullah (sallallahu ‘alaihi wasallam). (Musnad Ahmad #14631)