What is the ruling regarding closing one’s eyes in salah due to pain?

Answered according to Hanafi Fiqh by Darulifta-Deoband.org

بسم الله الرحمن الرحيم

(Fatwa: 1063/1116/L=10/1437)

It is makrooh to offer salah closing one’s eyes without a valid reason. However, there is no harm if someone closes his eyes due to pain.

Allah knows Best!

Darul Ifta,
Darul Uloom Deoband