وَالْحَجُّ وَالْجِهَادُ فَرْضَانِ مَاضِيَانِ مَعَ أُولِي الْأَمْرِ مِنَ الْمُسْلِمِينَ بَرِّهِمْ وَفَاجِرِهِمْ إِلَى قِيَامِ السَّاعَةِ، لَا يُبْطِلُهُمَا شَيْءٌ وَلَا يَنْقُضُهُمَا
Hajj and jihad remain two prescribed duties associated with the Muslim authorities, righteous or sinful, until the Hour; nothing annuls their prescribed status.
Fardan madiyan concerns the continuing validity of these religious rulings. The personal righteousness or wrongdoing of an authority does not, in itself, nullify the status of the duties.