Modi had also posted three photos including Xi and him shaking hands at Ufa followed by their meeting along with respective delegations.
During their talks, Xi called for proper management of differences over border issue and told Prime Minister Modi that China and India should work together to build a closer, comprehensive and firmer partnership among BRICS countries.
The two sides should properly manage and control their differences on the boundary issue and jointly safeguard peace and security in the border areas, Xi said.
This is the fourth bilateral meeting between the two leaders since their first in Fortaleza, Brazil, last July. Xi and Modi visited each other's countries and hometowns in 2014 and 2015 respectively.
Xi recalled his meeting with Modi in his hometown Xi'an, where the two leaders reached important consensuses on enriching the bilateral strategic partnership and forging a closer partnership of development, China's state-run Xinhua news agency reported.
The Xi'an meeting had sent positive signals to the people of the two countries and the international community that the two major developing nations are committed to cooperating for common development, Xi said.
“Thanks to joint efforts of both sides, the agreements reached back then are now being translated into steady progress in bilateral cooperation in such areas as parliamentary exchanges, railway, industrial parks and smart city,” Xi was quoted as saying.