In a commentary on this subject, Ibn Hajar says it is the grave corruption of the End Times that makes Hazrat Mahdi (as) virtuous."He will have many virtues because of the difficulties of the corruption in his time."(Ibn Hajar, a.g.e., p. 71)