When they entered the city as their father had advised them, it did not avail them against the will of Allah. Of course, Ya’qoob did his best to avert the fear he had in his heart. Indeed he possessed the knowledge which We had given him, but most people do not know.
Meaning:-
Avert: to turn away or aside: