In Islam, Destiny or Qadar refers to the belief that everything that happens in the world is predetermined by Allah. It means that Allah has knowledge of everything that will happen before it actually happens. This belief in predestination does not negate the concept of free will, as Muslims believe that Allah has given humans the ability to make choices and decisions in their lives.
Muslims believe that Allah has knowledge of all things, including the past, present, and future. This knowledge is absolute and complete, and nothing can happen without Allah's permission. However, this does not mean that Allah controls human actions or forces them to do anything against their will. Humans have free will and are responsible for their actions.
Muslims believe that Allah has written everything that will happen in the "Preserved Tablet" (Al-Lawh Al-Mahfooz), which is a record of all events that will occur in the universe until the end of time. Allah's knowledge of what will happen is not limited by time or space, and everything that happens is part of His divine plan.
Therefore, Muslims believe that they should strive to do their best in life and make good choices, but ultimately, the outcome of their efforts is in the hands of Allah. Muslims should trust in Allah's wisdom and accept the events that occur in their lives with patience and gratitude, whether they are good or bad, because everything happens for a reason and is ultimately part of Allah's plan.