PurposeThis study is the maiden attempt to understand the effect of specific human resource practices (HRPs) on employee retention (ER) with the mediation of job satisfaction (JS) and moderation of work experience (WE) and job hopping (JH) in the context of the textile industry.Design/methodology/approachThis study adopted a quantitative methodology and applied quota sampling to gather data from employees (n = 365) of leading textile companies in India. The conceptual model and hypotheses were tested with the help of Partial Least Squares-Structural Equation Modelling (PLS-SEM).FindingsThe findings of a path analysis revealed that compensation and performance appraisal (CPA) have the highest impact on JS followed by employee work participation (EWP). On the other hand, EWP had the highest impact on ER followed by grievance handling (GRH). The study revealed that JS significantly mediates between HRPs like CPA and ER. During Multi-group analysis (MGA) it was found that the importance of EWP and health and safety (HAS) was more in employee groups with higher WE, but it was the opposite in the case of CPA. In the case of JH behavior, the study observed that EWP leads to JS in loyal employees. Similarly, JS led to ER, and the effect was more pronounced for loyal employees.Originality/valueIn the context of the Indian textile industry, this work is the first attempt to comprehend how HRPs affect ER. Secondly, it confirmed that JS is not a guaranteed mediator between HRPs and ER, it could act as an insignificant, partial or full mediator. Additionally, this study establishes the moderating effects of WE and JH in the model through multigroup analysis.