It is reported that ʿAbdullāh b. Masʿūd – Allāh be pleased with him – said:
Do not be hasty in praising people or blaming them, for perhaps what pleases you from a person today will displease you tomorrow, and perhaps what displeases you today, will please you tomorrow. Indeed, people change. It is Allāh who forgives the sins. And Allāh is more merciful to his servant the day he meets him than a mother who lays out a bed for her child in an empty patch of land and feels [the ground]: if there is a risk of being stung, it will be her instead of him (her child), and if there is a risk of being pricked by a thorn, it will be her instead of him.
Al-Bayhaqī, Shuʿab Al-Īmān article 6177, and others.