Regarding Moses, Allah says:
رَبِّ بِمَا أَنْعَمْتَ عَلَيَّ فَلَنْ أَكُونَ ظَهِيرًا لِّلْمُجْرِمِينَ
Pronunciation
Rabbi bimaaa an'amta 'alayya falan akoona zaheeral-lil-mujrimeen.
Meaning
My Lord, for the favor You bestowed upon me, I will never be an assistant to the criminals.
Source: Surah Al-Qasas 28:17
Duas from IslamicAPI's Masnun Dua dataset (based on the Quran, hadith, Hisnul Muslim and Rahe Belayat). See the dataset