The analysis of human mobility behavior through computational techniques finds applications in various domains and provides valuable insights for urban planning, transportation services, and a deeper understanding of human interactions in Smart Cities and Smart Environments. In this scenario, this study presents a Systematic Literature Review (SLR) with the following main question: How are computational techniques being used to analyse human mobility behavior in Smart Cities and Smart Environments? A total of 5989 articles were initially found and filtered, resulting in 56 articles reviewed. As the main contributions, this study provides responses to 19 research questions. A list of the challenges and the computational techniques identified is provided. The algorithms, machine learning techniques and data-sources used by the reviewed studies are also presented and organized through taxonomies. A comprehensive discussion of the identified techniques is conducted, finishing with a compilation of challenges, open issues and research opportunities. To the best of our knowledge, this is the first study that reviewed human mobility behavior covering a wide range of scenarios, including urban mobility, public transport, points and regions of interest, ridesharing, bike-sharing, traffic analysis, driving behavior, electric vehicle charging stations planning, mobility on demand, crowd analysis and others.