Rat out on (someone)

To desert or betray someone, to leave someone at a critical time.

The boy’s friend ratted out on him and refused to support him in his fight with the neighborhood bully.