Allah turned with favour to the Prophet , the Muhajirs , and the Ansar , - who followed him in a time of distress , after that the hearts of a part of them had nearly swerved ( from duty ) ; but He turned to them ( also ) : for He is unto them Most Kind , Most Merciful .