It is narrated from Sayyiduna Abdullah bin Abbas (may Allah be pleased with them both) that Sayyiduna Ali (may Allah be pleased with him) said: "O Messenger of Allah, on the day of Uhud, when martyrdom was delayed for me and those who were to be martyred were martyred, you (peace and blessings be upon him) said to me: 'Martyrdom is (coming) behind you.'" He (peace and blessings be upon him) said: "(Then) how will your patience be when this (beard) is dyed with this (blood from the head)?" And he (peace and blessings be upon him) pointed with his hand to his beard and head. Sayyiduna Ali (may Allah be pleased with him) said: "Since you (peace and blessings be upon him) have made this clear, this is not an occasion for patience; rather, it is an occasion for glad tidings and honour."
Related hadith on this topic