Seeing a lock in your dream can symbolize security, obstacles, and secrecy. This dream may provide important insights into various aspects of your life. Your personal experiences and feelings about locks can help you understand its meaning. The interpretation of this dream may relate to your current life situation and future goals.
From Imam Muhammad Ibn Seerin's Dictionary of Dreams According to Islamic Inner Traditions â entry "Lock" (page 258).
In a dream, a lock represents a trustworthy person or a virgin girl. Opening a padlock in a dream means escaping fromjail, or release from prison. If one who is suffering from depression sees himself unlocking a padlock in a dream, it means that his sorrows or sadness will be dispelled. A lock in a dream also represents a proof, a strong point or a tool. Unlocking a padlock in a dream also means divorce. Locking a door in a dream means seeking a cosigner for a loan or a guarantor. If one who is seeking to get married sees a lock in his dream, it means that he will meet with a trustworthy and a caring woman. A padlock for a traveller in a dream means safety. A metal lock in a dream means dignity, safety, piety, deciphering a language, symbols, or acquiring knowledge. Wooden locks in a dream represent a husband, children, knowledge, wisdom, ease in one's life, or guarding one's promise. Locks in a dream also mean heedlessness. A wooden lock means hypocrisy, or hesitation in one's words and actions, or it could mean accepting a bribe. (Also see Close; Padlock)
Note: Islamic dream interpretation depends on the dreamer's circumstances and state. This is a general guide drawn directly from the source book.