NEW YORK (CNNMoney.com) – Texas had the highest net migration in the country in 2008, according to the U.S. Census Bureau.

As other states suffered through a falling economy last year, the Lone Star State experienced an influx of residents, thanks to relatively stable housing and employment markets.

The population grew by 140,000 in 2008, after subtracting those leaving the state from those moving into it.

The Census Bureau also reported that fewer residents were moving within their home states.

The percentage of people who lived in different homes within the same state dropped to 12.6 percent during 2008. It was 12.8 percent in 2007 and 13 percent in 2005, when housing markets were hopping.