The Prophet (peace and blessings be upon him) praised the companions and warned Muslims against attacking or insulting them. for example, Al-Bukhari, Muslim, and other traditionalists relate from Abu Sa`id Al-khudri that Allah’ s Messenger warned
Do not curse my companions! do not curse my companions! i swear by him in whose hand my life is, that even if one among you had as much gold as mount uhud and spent it in the way of Allah, this would not be equal in reward to a handful spent by them or even to its half.
This is certainly so, because they accepted Islam and preached and protected it when circumstances were most severe. besides, according to the rule “the cause is like the doer,” the reward gained by all Muslims until the last day has been, and will be, added to the record of the companions, without, of course, diminishing anything from the reward of the doers themselves. had it not been for the efforts of the companions to spread islam, to convey it to the Peoples of the world, no one could possibly have known of Islam or, therefore, of being Muslim. So, all the Muslims coming after the companions should feel indebted to the companions and rather than thinking of criticizing them, should pray for them as the Qur’an teaches us to.
(As for those who came after them, they say, our lord, forgive us and our brothers who preceded us in belief, and put not into our hearts any rancor towards those who believe. Our lord, surely you are the all-gentle, the all-compassionate) (Al-Hashr 59:10).
At-Tirmidhi and Ibn Hibban quoted ‘Abdullah Ibn Mughaffal that Alah’s Messenger warned fear Allah; fear Allah and (refrain from using bad language) about my companions! (he said it twice) do not make them the target of your attacks after me! whoever loves them, loves them on account of his love of me; whoever hates them, hates them on account of his hatred of me. He who maligns them, has maligned me, and he who maligns me, has maligned Allah, and it is embedment that Allah punishes those who malign him.
As recorded in authentic books of tradition, including Al-Bukhari and Muslim, Allah’s Messenger (peace and blessings be upon him) declared
The best of people are those living in my time. Then come those who follow them, and then come those who follow them.
The time of the companions and the two succeeding generations, was the time of truthfulness. people of great righteousness and scholars of utmost exactitude appeared among those first three generations of Islam. among the later generations were many who told lies and perjured themselves in order to reinforce false beliefs or for worldly aims.
In his hilyat Al-Awliya’, Abu Nu`aym quotes ‘Abdullah Ibn ‘Umar as saying
Whoever desires to follow a straight path, should follow the path of those who passed away. they are the companions of Muhammad (peace and blessings be upon him). They are the best among his Ummah, the purest in heart, the deepest in knowledge, and the farthest from false display of piety. They are a community whom allah chose for the company of his Prophet and the conveyance of his religion.Try to be like them in conduct and follow their way. I swear by Allah, the lord of the ka`bah, that they were on true guidance.
As recorded by At-Tabarani and ibn Al-Athir, ‘Abdullah Ibn Mas`ud, who was among the first to embrace Islam in Makkah and sent to Kufah as a teacher by ‘Umar, said:
Allah looked at the hearts of his true servants and chose Muhammad (peace and blessings be upon him) to send to his creatures as a Messenger. Then, he looked at the hearts of people and chose Muhammad’s companions as the helpers of his religion and the viziers of his Prophet (peace and blessings be upon him).
Concerning the companions, Ibn Mas`ud also said:
"You may excel the companions in fasting, praying and in striving to worship Allah better. yet they are better than you. for they give no heed to the world and are most desirous of the hereafter.