Peace be upon you. It is permissible to close your eyes during prayer, but it is considered disliked (makruh) for the person praying. According to Grand Ayatollah Sistani, there is no objection to closing the eyes in prayer, but it is regarded as a disliked act. Similarly, Grand Ayatollah Khamenei states that there is no legal objection to closing the eyes, but it is disliked outside of the bowing position (ruku). May you be successful in all good.