It is narrated that in one part of his will and testament to his son in law and the first Shia Imam, Ali ibn Abitaleb (AS), the holy Prophet of Islam (PBUH) said:
O’ Ali, no poverty is worse than ignorance, and no wealth is better than wisdom and knowledge. And no loneliness is more terrifying than arrogance and egotism [1].
[1] Beharul Anwaar, Vol. 74, Page 61.
Source: en.shafaqna.com