So the one whose hijrah was to Allah and His Messenger, then his hijrah was to Allah and His Messenger.
Ruuxiise caasiya Eebe iyo Rasuulkiisu wuxuu dhumay dhumid cad” (Surat Al Ahzab, verse 36) [Koranic verse].