Sanskrit (or maybe another ancient Indian language?) is supposedly the mother of the Indo-European Language Family.
French comes from the Romance/Latin branch on the European side.
It's very likely that Hindi (or a predecessor), Persian and Arabic -- all three -- have been influencing each other for a long time.
My guess is that you were referring to Batu (rock) Ferringhi on Pulau (island) Penang in Malaysia. Another country which has been influenced by many cultures and languages.
If you pay attention to words in Melayu and Thai, you will notice similarities that most likely originated in South Asia or the Middle East.
____________________
The word ferringhi or feringgi is a modern spelling of the Classical Malay word peringgi, originally used in reference to the Portuguese conquistadors before being all people of European descent. It is cognate with the Thai farang and Khmer barang. All derive from the Indian word firangī (फ़िरंगी) which itself originates either with the Arabic ferringi or Persian farangi. In the Middle East and Africa, it originally referred to the Franks but came to mean Europeans in general.