built on sand
Founded or based on something unstable. Likened to building a physical structure on sand, which is not a suitable building surface. A relationship based entirely on physical attraction is built on sand and won't last long.
built on sand
without secure foundations; liable to collapse. This phrase comes from the biblical parable contrasting the wise man who built his house on rock with the fool who built his on sand (Matthew 7:24–7).