The Tweet came minutes after the oath-taking ceremony at the Rashtrapati Bhavan where nine new members were inducted into the council of ministers and four others were promoted to the Cabinet rank.
"Thanks to all 13 Lacs+ rail family for their support, love, goodwill. I will always cherish these memories with me. Wishing you all a great life," said Prabhu.
Prabhu, who had met Prime Minister Narendra Modi and offered to resign after the train accidents last month, had been absent from his Rail Bhavan office from August 23.
"Congrats to all members of #TeamModi for new responsibility. Making our country better is our common mission," Prabhu wrote.
More From This Section
He also applauded Mukhtar Abbas Naqvi, Dharmendra Pradhan, Nirmala Sitharaman and Piyush Goyal for their elevation as Cabinet ministers.
"Congrats to @dpradhanbjp @PiyushGoyal @nsitharaman @naqvimukhtar for their new responsibilities Best wishes for great success," he tweeted.
On August 19, 23 people were killed and over 200 injured when 13 coaches of a train derailed near Muzaffarnagar, Uttar Pradesh. Four days later, 10 coaches of the Kaifiyat Express heading towards Delhi collided with a dumper in Auraiya district, Uttar Pradesh.