The Ansar never envied the Muhajirin

Allah said,

﴿وَلاَ يَجِدُونَ فِى صُدُورِهِمْ حَاجَةً مِّمَّآ أُوتُواْ﴾

(and have no jealousy in their breasts for that which they have been given,) meaning, the Ansar did not have any envy for the Muhajirin because of the better status, rank, or more exalted grade that Allah gave the Muhajirin above them. Allah's statement,

﴿مِّمَّآ أُوتُواْ﴾

(that which they have been given,) refers to what the Muhajirin were favored with, according to Qatadah and Ibn Zayd.