It is narrated from Sayyiduna Abdullah bin Abi Awfa (may Allah be pleased with him) that the Prophet (peace and blessings be upon him) said: "The adulterer, at the time he commits adultery, is not a believer; the one who drinks wine, at the time he drinks it, is not a believer; the thief, at the time he steals, is not a believer; and the plunderer, when he takes plunder of a kind towards which people raise their eyes, is not a believer at that time."
This hadith has a supporting narration (shahid) in the two Sahihs through Sa'id bin al-Musayyib, Abu Salamah and Abu Bakr bin Abd al-Rahman (may Allah have mercy on them) from the hadith of Sayyiduna Abu Hurayrah (may Allah be pleased with him).