Stargate

"It will take you a million light years from home. But will it bring you back?"

An interstellar teleportation device, found in Egypt, leads to a planet with humans resembling ancient Egyptians who worship the god Ra.