Fadalah bin Abi Fadalah al-Ansari (may Allah have mercy on him) (and his father, Abu Fadalah (may Allah be pleased with him), was one of the people of Badr) narrates: I went out with my father to visit Sayyiduna Ali bin Abi Talib (may Allah be pleased with him) when he was ill with a sickness that had made him very weak.
He narrates that my father said: "What keeps you staying in this place of yours? If your appointed time came to you, there would be no one here to take care of you except the Bedouins of Juhaynah. Hurry to Madinah, for if the time of your death comes, your companions will take charge of preparing and shrouding you and will offer the funeral prayer over you."
Sayyiduna Ali (may Allah be pleased with him) said: "Indeed, the Messenger of Allah (peace and blessings be upon him) made a covenant with me that I would not die until I was made a ruler, and then this (meaning his beard) would be dyed with the blood of this (meaning his head)."
So Sayyiduna Ali (may Allah be pleased with him) was martyred, and Abu Fadalah (may Allah be pleased with him) was also martyred alongside Sayyiduna Ali (may Allah be pleased with him) on the day of Siffin.