What grammatical role does “رَبُّهُمْ” have in “أَرَادَ بِهِمْ رَبُّهُمْ رَشَدًا”?

ʿIlm al-Maʿānī: Khabar, Inshāʾ and the Purposes of Reporting