Having a critical eye on the Gospel according to John 5:19,47, claiming that Jesus ﷺ said:
Truly, truly, I say to you, the son can do nothing of his own accord, but only what he sees the Father doing; for whatever he does, that the son does likewise. For the Father loves the son, and shows him all that he himself is doing; and greater works than these will he show him, that you may marvel. For as the Father raises the dead and gives them life, so also the son gives life to whom he will. The Father judges no one, but has given all judgment to the son, that all may honour the son, even as they honour the Father. He who does not honour the son does not honour the Father who sent him.
closing (speaking to Jews who did not believe him)
You search the scriptures, because you think that in them you have eternal life; and it is they that bear witness to me; yet you refuse to come to me that you may have life. I do not receive glory from men. But I know that you have not the love of God within you. I have come in my Father's name, and you do not receive me; if another comes in his own name, him you will receive. How can you believe, who receive glory from one another and do not seek the glory that comes from the only God?
Do not think that I shall accuse you to the Father; it is Moses who accuses you, on whom you set your hope. If you believed Moses, you would believe me, for he wrote of me. But if you do not believe His writings, how will you believe my words?"
To my surprise, I found the Quran confirming Jesus to be a witness but contradicting the version that Moses will accuse the Jews:
An-Nisa 4:159
There is none from the People of the Scripture but will believe in him (i.e. Jesus) before his death, and on the Day of Resurrection he will be a witness against them.
Even more in Sahih Al-Bukhari 60:118 (3448)
Allah's Messenger (ﷺ) said, "By Him in Whose Hands my soul is, surely the son of Mary (i.e. Jesus) will soon descend amongst you and will judge mankind justly; he will break the Cross and kill the pigs and there will be no Jizya. Money will be in abundance so that nobody will accept it, and a single prostration to Allah will be better than the whole world and whatever is in it." Abu Huraira added "If you wish, you can recite : (4:159, see above)"
John evidently understands here the «son» as singular, Jesus ﷺ. Jesus himself used the term «son of God» in plural, for all who do the Will of God. So I come to my question:
According to other Islamic sources, is the role as a witness before God or even as a judge in the Name of God only accorded to Jesusﷺ, or are others, out of the plurality of those who do the Will of God, or in particular Muhammadﷺ or Musaﷺ, evenly mentioned not only as a witness but also - as in the hadith - as a judge on the coming of the last day?