First let me say that is CRAP!! not true! not in the least bit true!! You are not being punished for your beliefs on God.
Second let me explain why this bothers me so much. There was a time when I believed that I was being punished for all of the bad things I have done in my life. I thought God was trying to teach me a lesson and that if I hadn't been so bad in my life actions, I wouldn't be going through this hell now. I thought God was punishing me with a life with pain.
You are NOT being punished for your beliefs.
You are NOT being punished by God for something you did in your past.
You are NOT being punished.
You have probably heard some insensitive comments from some pretty insensitive people. Unfortunately there is nothing we can do about that but learn not to take the comments personally.
take good care of you