It is narrated from Hazrat Ka'b (may Allah be pleased with him) that whenever the Prophet (peace and blessings be upon him) returned from a journey at the time of Duha (forenoon), he would first go to the mosque, perform two rak'ahs, and sit there for a while.