Short answer
There is no scientific evidence that owning a compass brings good luck. A compass is a tool. It helps you find direction when you use it with a map and sound judgment. Whether it feels lucky depends on the person and the situation.
Where the belief comes from
Compasses have long been linked with travel, especially at sea and in the field. Sailors, explorers, and travelers carried them for generations, so the object became a sign of journeys and safe passage. Some people give or carry a compass as a keepsake for a trip, and that custom can add to the sense of luck. These are cultural beliefs rather than facts about the object.
What actually keeps you on course
Staying on course comes from skill and preparation. That means knowing your bearing, checking it against landmarks, and carrying a map that matches the ground you will cross. A good compass helps with this, but it does not replace these steps. For the method, see how to find your location with map and compass.
Checking that your compass is reliable
A damaged or magnetized compass can mislead you, however lucky it feels. Check that the needle moves freely and settles on north. Keep the compass away from metal objects and magnets when you take a reading. If the needle sticks or settles slowly, replace the compass before you rely on it.