Wal-Mart Stores Inc. will pay more than $33 million in back wages to thousands of employees after turning itself in to the Labor Department for paying too little in overtime over the past five years, according to an agreement announced Thursday by the U.S. Labor Department.

Wal-Mart said the department’s review of its overtime calculations also found it had overpaid about 215,000 hourly workers during the same five-year period. The company said it will not seek to recover any overpayments, which were at least $20 per worker.