It is narrated from Imam al-Hasan al-Basri (may Allah have mercy on him) that Sayyiduna Muhammad bin Maslamah al-Ansari (may Allah be pleased with him) asked the Messenger of Allah (peace and blessings be upon him) for a sword, and he (peace and blessings be upon him) gave it to him. While the sword was still in his (peace and blessings be upon him) hand and he had not yet handed it over to him, he (peace and blessings be upon him) laid down a condition for him, saying: "O Muhammad, take it. Fight the polytheists with it for as long as they are being fought; and when you see that the Muslims have begun fighting one another, take this sword to (the mountain of) Uhud and break it (by striking it on a rock)."
Imam al-Tabarani (may Allah have mercy on him) said: "No one narrated this hadith from Muhammad bin Juhadah except his son (Isma'il)."