What is Islams view on predestination

The belief that everything has already been written and that our fate has already been determined, this directly contradicts the belief that humans have free will. What does Islam say about this?