 When Ibn Muhtaj left for Samanid Khurasan, Voshmgir retook control of Ray.However, in 943, a battle was fought near the city between Vushmgir and Hasan.During the battle, two of Vushmgir's officers named Shir Mardi and Gurigir mutinied against him and joined Hasan.