Sahih al-Bukhari, Book 86, Hadith 28 (Bukhari 6553)

Narrated Abu Huraira:

Allah 's Apostle said, "Allah curses the thief who steals an egg (or a helmet) for which his hand is to be cut off, or steals a rope, for which his hand is to be cut off."