you thought wrong: estabas equivocado/pensaste mal. person 1: i did n’t know i had to pay you back. person 2: well, you thought wrong.
Person 1: You thought wrong. Person 2: You were mistaken/You've got the wrong idea. Person 1: I didn't know I had to pay you back. Person 2: Well, estabas equivocado.