I need historical references/books of those companions of the Holy Prophet especially after his demise with regard to Imam Ali (as) Caliphate.
For instance, I learnt that Anas ibn Maliq had no good ending, for not being a witness to Imam Ali in respect of Imamate vis Imam Ali’s (as) curse on him.

Read this book

https://www.al-islam.org/tags/companions