What the teacher did is haraam
Question

One of the students is very fond of a teacher, and the teacher shares this feeling. The teacher was reading the students’ answers to a test, then she dictated the answers to this girl so that she could get a higher grade, i.e., it was an act of blatant cheating. What is the ruling on this? Also, does the crowing of a roosetr mean that it has seen the angels?
Praise be to Allah.This cheating on the part of the teacher is haraam, and it is also haraam for her to single out and favour one student. If she likes her because she is taken with her prettiness, beauty, energy, knowledge, intelligence or character, then she may praise her for that, but helping her to cheat is haraam. With regard to the second part of the question, yes, this is correct. The hadeeth says: “If you hear the voice of the rooster, then ask Allah of His bounty, for it has seen an angel. But if you hear the braying a donkey then seek refuge with Allah from the Shaytaan, for it has seen a devil.”