Good morning, Herr Wittmann!
There are no contemporary accounts, and the only source seems to be Plutarch, who relates to Hannibal’s ranking twice - and contradicts himself in doing so.
From Life of Flaminius:
It is related that they met again in Ephesus, and that as they walked together Hannibal took the place of honour, while Africanus walked contentedly beside him. Their conversation turned upon great generals, and when Hannibal stated his opinion that the best of generals was Alexander, next to him Pyrrhus, and next himself, Scipio, with a quiet smile, asked him: “What would you have said, if I had not conquered you?” “In that case, Scipio,” answered Hannibal, “I should not have reckoned myself third but first of generals.”
From Life of Pyrrhus:
Hannibal, however, considered Pyrrhus to have been the first general that ever lived for skill and resource, placing Scipio next, and himself third, as is written in the Life of Scipio.
The text of Plutarch’s Life of Scipio has not survived.
Pyrrhus was a formidable commander, who caused the Romans great trouble when he invaded Southern Italy. Today, he’s primarily remembered for his “pyrrhic victory”, but that was, after all, still a victory.