The minister stated this on Tuesday in Katsina at the Ground Breaking Ceremony of the Kano-Katsina-Jibiya-Maradi rail project.
The News Agency of Nigeria (NAN) reports President Buhari performed the ceremony virtually while other dignitaries were physically present.
Governors Aminu Masari of Katsina State, Abdullahi Ganduje of Kano State, Abubakar Barawu of Jigawa, and Sanni Saidu of Maradi in Niger Republic were present at the event.
Ministers of Transportation, Rotimi Amaechi, Interior, Rauf Aregbesola, Foreign Affairs, Geoffrey Onyema, Labour, Chris Ngige and Minister of State Health, Olorunnibe Mamora, as well as traditional rulers were present at the event.
Speaking at the ceremony, Mohammed said after a successful completion of his administration, Buhari will be remembered for leaving a legacy of massive infrastructure development in the country.
He said the Kano-Maradi rail project is a further testimony to the commitment of the administration to the development of infrastructure in the country.
"Infrastructure and economic development have been the watchword of the President and posterity will be very kind to him.
"What we have witnessed today is deepening of the infrrastructural development that will bring prosperity and economic development to everybody, particularly the people of Kano, Dutse, Kazaure, Katsina, Jibiya and Maradi," he said.
The minister said some people had questioned the rationale behind extending 25km of the rail line to Niger Republic.
He reiterated his position that the reason was for the development of the nation's economy.
"Many of our neighbours are landlocked and they depend on the port in Lome Accra and Cotonou.
"What we have done today, that is the rail from Jibiya to Marad, will make it cheaper for the exporters and importers to bring their goods via the rail to our ports," he said.
Earlier in their respective remarks at the events the Governors of Katsina, Kano and Jigawa States commended the President for his efforts on infrastructure development in their zone and across the country in general.
Masari said his state is the greatest beneficiary of the project, urging for it's speedy completion before the end of the administration.