You're likely referring to The World That Never Was. If so, it was Axel who brought Kairi there, and Saïx later held her prisoner.