It is narrated from Sayyiduna Ka'b bin Malik (may Allah be pleased with him) that when the Prophet (peace and blessings be upon him) would return from any journey, he would first go to the mosque, offer two rak'ahs there, and after concluding the prayer with salam, he would sit on his prayer mat, and people would come and greet the Prophet (peace and blessings be upon him).