The worker lifted the child onto the platform moments before the train would have hit.
The ministry praised the employee, pointsman Mayur Shelkhe, as a “good samaritan.”
“We salute his exemplary courage & utmost devotion to the duty,” they added in the tweet.
Indian Railways is the world’s fourth-largest rail operator and India’s biggest employer.
India is currently dealing with a worsening second wave of coronavirus. On Sunday, the country reported 261,500 new cases — its highest single-day figure so far, according to data from the Indian Ministry of Health.