From Arabic رَفِيق (rafīq, “companion”), from رَفَقَ (rafaqa, “to be friendly”).
rafiki (ma class, plural marafiki) or rafiki (n class, plural rafiki)