Abdullah bin Umar (may Allah be pleased with them both) would enter the mosque with his right foot first, and when leaving, he would step out with his left foot first.