Hazrat Mahdi (as) is extremely submissive towards Allah. In moral terms, he is like the Prophet (saas). (Al-Barzanji, Al-Isha'ah li-ashrat al-sa'ah, p.163)
A child of mine whose morality is similar to me will emerge. (Al-Muttaqi al-Hindi, Al-Burhan fi Alamat al-Mahdi Akhir az-Zaman, p. 21)
Allah reveales our Prophet’s (saas) superior moral virtues in the Qur’an thus:
And, doubtlessly, you are blessed with a great moral character. (Surat al-Qalam, 4)