If someone decides to Leave Hinduism and become atheist, do any the scriptures (Vedas, Smritis, Puranas) consider it an offense worthy of punishment and prescribe any punishment for it? Just like how scriptures list punishments for offences like stealing, brahmahatyā etc?
If yes, what punishment do the scriptures prescribe? Please answer with reference.