My question is regarding the rule of namaz ayat. I know that I have to pray namaz ayat when there is a solar and lunar eclipse but I was wondering what is the rule for thunder and lightning. Is it obligatory to pray this namaz when there is thunder and lightning.

If it is to extent that causes you fear then yes you should pray.