It is narrated from Sayyiduna Umayr bin Qatadah al-Laythi (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said during the Farewell Hajj: "The friends of Allah are those who pray, who establish the five prayers which Allah has made obligatory upon His servants, who fast Ramadan and fast it seeking reward, who give zakah with a pure heart seeking reward, and who avoid the major sins which Allah has forbidden." One of his Companions said: "O Messenger of Allah, how many are the major sins?" He (peace and blessings be upon him) said: "They are nine. The greatest of them is associating partners with Allah; then killing a believer without right, fleeing from the battlefield on the day of battle, slandering a chaste woman, practising magic, consuming the wealth of an orphan, consuming usury (riba), disobeying Muslim parents, and treating as lawful (violating the sanctity of) the Sacred House, which is your qiblah, for the living and the dead. Whoever does not commit these major sins, establishes the prayer and gives zakah, whenever he dies he will be with Muhammad (peace and blessings be upon him) in the very midst of a Paradise whose gates have panels of gold."
Hadith Referenceالمعجم الكبير للطبراني / باب العين / 14173