The Messenger of Allah (s) sent Khalid b. al-Walid to a neighbourhood called Banu al-Mustalaq from Bani Judhayma, who had a rivalry with Bani Makhzum in Jahiliyya. When he was sent to them, they had followed the Messenger of Allah (s) and had taken letters from him [but they had yet to fully convert to Islam]. When Khalid was sent to them, he ordered a caller to call to prayer. He prayed and they prayed. When Fajr prayer came, he ordered his caller to call to prayer. So, he prayed and they prayed. Then, he called for a horse and started battling them. He killed and wounded [some of them]. They demanded their letter and they received it. It was given to the Prophet (s), and they had spoken about what Khalid b. al-Walid had done. So, he turned toward the qibla and said: O Allah! To You, I dissociate from what Khalid b. al-Walid has done. He said: Then, the riches and the spoils were brought to the Messenger of Allah. So, he said to `Ali (as): O `Ali! Go to Bani Jadhima from Bani al-Mustalaq and rectify them from what Khalid has done. Then, he (s) raised his feet and said: O `Ali! Put the judgment of the people of Jahiliyya beneath your feet. So, `Ali (as) went to them. When he got to them, he judged them by the judgment of Allah. When he returned to the Prophet (s), he said: O `Ali! Inform me of what you have done. So, he said: O Messenger of Allah! I gave blood money to everyone affected, a servant to every mother that miscarried, and money to everyone who was robbed. I had extra wealth, so I gave them containers to wash their dogs in and reins for their shepherds. I still had extra wealth, so I gave them until they could be pleased with you, O Messenger of Allah. So, he (s) said: O `Ali! You gave them so that they could be pleased with me. May Allah be pleased with you, O `Ali. You are to me as Aaron was to Moses, except there is no prophet after me.