On one occasion, there was a power cut in the mosque just before a congregational prayer. Someone placed a candle in front, but the Imam, who was not from our village, refused to start the prayer until the candle was removed. He explained that it was not permissible, but he failed to provide evidence. Could you please explain whether he was right.
The Imam was right in removing the candle, although the prayer would not have been invalid if the candle remained in front of you. The ruling is that facing a fire, of any sort, in prayer is reprehensible, or Makrooh. This is due to the fact that some groups of idolaters used to worship fire and always prayed facing it. Therefore, it is reprehensible to place a fire in front of us when we pray, so as to leave no chance of apparent similarity between our prayer and what idolaters did.
This applies not only to fire, but to any aspect of idolatrous worship. It is also reprehensible to offer any prayer at the point of sunrise, sunset and when the sun is at the highest point in the sky. This is due to the fact that some idolater groups worshipped the sun, and prayed at these points in time. Islam is keen that our prayer should not resemble any idolatrous practice.