It is narrated from Sayyiduna Ka'b bin Malik (may Allah be pleased with him) that the Prophet (peace and blessings be upon him) would not return from a journey except in the daytime, in the forenoon, and when he returned, he would first go to the mosque, pray two rak'ahs in it, and then sit in it.
Hadith Referenceالمعجم الكبير للطبراني / باب الكاف / 16156