Allah’s Apostle said, “If anyone of you enters a mosque, he should pray two Rakat before sitting.” Source: HOTD