In heaven, we retain free will, but it is perfectly aligned with God’s will, allowing us to only choose what is good and right. Unlike earthly life, there are no temptations or tests, and our desires will be fully transformed and pure.
We know that heaven is a place where we will be with God physically. The only other place we know of where that was the case was the Garden of Eden, and clearly Adam and Eve had free will there. So, we can deduce that we will have free will in heaven—but not to the extent that we can choose to sin and get evicted from heaven. Free will means we have choices to make between two or more options according to our desire. We are not limitless, as we are limited by our nature as humans, but we are free within our nature to make choices that have an effect on our lives. We are limited not just by being human but also by our sinful nature. Before we are saved, our free will is restricted in that it cannot choose righteousness. After salvation, we struggle between a desire to sin and a growing desire to please God with help from the Holy Spirit. In heaven, our free will is limited against choosing what is wrong. Our free will in heaven will supernaturally always choose what is true, noble, right, pure, lovely, and admirable (see Philippians 4:8).
Those who believe in Jesus Christ for salvation are set free from the bondage of sin because the Holy Spirit works within us to enable us to choose righteousness, forgiveness, and the lordship of Christ. As we grow in maturity and learn to listen and respond to the Holy Spirit, our desire for righteousness deepens. Though we may still choose sin at times, we are also empowered to choose righteousness. Instead of being driven by our sinful nature, we can battle against it with the help of the Holy Spirit. The Holy Spirit also gradually transforms our hearts (Romans 6:18; 8:5–6; Galatians 5:16–18). Believers are "new creations" in Christ (2 Corinthians 5:17). While on earth, we live with tension between our sinful natures and this newness in Christ. In heaven, we will be glorified; transformation will be complete, and we will have no sin. In heaven, our desire will be completely for God and His desires for us. This is pure freedom (Romans 8:21). Our desire to sin will be eliminated, so our choice to sin will no longer exist.