[Apologies if this is mentioned in another post - I couldn't find it, if it is]
Sinning against the holy spirit is mentioned in the Synoptic gospels
"And whosoever shall speak a word against the Son of man, it shall be forgiven him: but unto him that blasphemeth against the Holy Ghost it shall...