988/1 - Ka‘b ibn Mālik (may Allah be pleased with him) reported: “Whenever the Messenger of Allah (may Allah’s peace and blessings be upon him) returned from a journey, he would first head to the mosque and offer two Rak‘ahs therein.” [Narrated by Al-Bukhāri and Muslim]
1) A person’s bond with his Lord and hastening to show gratitude to Him upon returning from travel takes precedence over his bond with people.
2) It is a confirmed Sunnah that a person returning from travel should offer two Rak‘ahs (units of prayer). The Prophet (may Allah’s peace and blessings be upon him) did it and urged us to follow suit. He said to Jābir ibn ‘Abdullāh al-Ansāri: “Did you enter the mosque and pray?” He said: “No.” The Prophet said: “Enter the mosque and offer two Rak‘ahs.” [Narrated by Al-Bukhāri]