Praise be to Allah.
If the conditions of prayer are fulfilled and the essential parts or pillars of the prayer are completed, then the prayer is valid.
Light is not an essential condition of prayer or an obligatory part of the prayer. But if the darkness is a cause of fear which disturbs a person to the point that he cannot have the necessary presence of mind and humility in prayer , then it is disliked for him to pray in the dark.
And Allah knows best.
Comment