I have written my exams and I want to pray for success in all the papers I don’t want to fail because I did my best. The rest is unto Allah I want him to intervene

What should say my brother you have already said that you have done efforts now hope Inshallah Allah will give you success.
Holy Quran says:

وَأَن لَّيْسَ لِلْإِنسَانِ إِلَّا مَا سَعَىٰ

and that nought shall be accounted unto man but what he is striving for;
In the light of this very verse of the Holy Quran our duty is to TRY and results are is the Hands of Allah so don’t worry and have hope in Him.