It was very unfortunate of him to have lost the battle .

Is in this sentence usage of  preposition "of" correct ?