PurposeWith a basis in social identity and equity theories, this study investigates the relationship between employees' perceptions of organizational injustice and their knowledge hiding, along with the mediating role of organizational dis-identification and the potential moderating role of benevolence.Design/methodology/approachThe hypotheses were tested with three-wave survey data collected from employees in Pakistani organizations.FindingsThe experience of organizational injustice enhances knowledge hiding because employees psychologically disconnect from their organization. This mediation by organizational dis-identification is buffered by benevolence or tolerance for inequity, which reduces employees' likelihood of reacting negatively to the unfavourable experience of injustice.Practical implicationsFor practitioners, this study identifies organizational dis-identification as a key mechanism through which employees' perceptions of organizational injustice spur their propensity to conceal knowledge, and it reveals how this process might be mitigated by a sense of obligation to contribute or “give” to organizational well-being.Originality/valueThis study establishes a more complete understanding of the connection between employees' perceptions of organizational injustice and their knowledge hiding, with particular attention devoted to hitherto unspecified factors that explain or influence this process.