It is narrated from Sayyiduna Ali (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "No servant can be a believer until he believes in four things: that he bears witness that there is no god worthy of worship except Allah, and that I am the Messenger of Allah, He has sent me with the truth; and (that he believes) in the resurrection after death, and in the decree (qadar)."
And Sharik bin Abdullah (may Allah have mercy on him) narrated it from Mansur (may Allah have mercy on him).