Sunan Ibn Majah, Book 5, Hadith 210 (Ibn Majah 1012)

It was narrated from Abu Hurairah that the Messenger of Allah (ﷺ) said:

“When anyone of you enters the mosque, let him not sit down until he performs two Rak’ah.”