I was informed that he (the Holy Prophet) cursed the one who did that (and it was recorded) in his Sahifa (in a document). Sahih Muslim Book 20, Hadith 21