It depends on your religious views. It is considered a sin in several religions, including:
- Most branches of Christianity
- Islam
- Orthodox Judaism (ALL other types of Judaism do not consider it a sin)
- Bahá'í Faith (though it's only a sin for members of the religion)
- Hinduism (mixed opinions)
- Jainism
- Sikhism (mixed opinions)
- Zoroastrianism
- Taoism
It is expressly considered NOT a sin in the following religions:
- Judaism (all affiliations except Orthodox)
- Wicca
- Unitarian Universalism
- Confucianism