And thou slewest a person , but We delivered thee from sorrow , and We tried thee with several trials . Then thou tarriedst for years among the people of Madyan then thou camest according to fate , O Musa !