Answer
King Ashama ibn-Abjar was the first person to have their absentee funeral observed in the Kaaba. He was a pagan king of Yemen who converted to Islam in 630 CE and died a few years later. His body was returned to Yemen and buried there, but his funeral was held in the Kaaba in Mecca, which is the holiest site in Islam.