Allah hath turned in mercy to the Prophet , and to the Muhajirin and the Ansar who followed him in the hour of hardship . After the hearts of a party of them had almost swerved aside , then turned He unto them in mercy .