take against

中上級 (B2)informal

Start to dislike someone, sometimes for no clear reason

"For some reason, the teacher seemed to take against him from the very first day of term."