Some biblical scholars interpret the story of Judah and Tamar (Genesis 38) as a case of sacred prostitution. Their reading is supported neither by textual nor by archeological evidence.
Read more on Bible History Daily: http://www.biblicalarchaeology.org/daily/ancient-cultures/ancient-israel/sacred-prostitution-in-the-story-of-judah-and-tamar/