According to the Hebrew Bible, the First Temple, at the site known as the Temple Mount today, was built by King Solomon and finished in 950 BC, and Mount Moriah is where Abraham almost sacrificed his son and talked to God. When the Babylonians captured the city in 580 BC, they destroyed the temple and sent the Jews into exile. That is, all worshiping was practiced in the temple and only the temple. From the Babylonian capture, Judaism was codified. The Tanakh (Old Testament) laid the foundation for both Christianity and Islam.