On August 20, 2022, the Astros selected Hensley's contract and promoted him to the major leagues.[7] He made his major league debut on August 27, starting at shortstop and going 0-for-3 with a strikeout versus the Baltimore Orioles at Minute Maid Park.[8][9] The following day, he doubled off Orioles starting pitcherAustin Voth in the third inning for his first major league hit.[10] He collected his first three-hit game and reached base four times in a game for the first time in the major leagues versus the Texas Rangers on August 31.[11] Hensley doubled home two runs on in fifth inning on September 4 versus Tucker Davidson of the Los Angeles Angels for his first two career RBI.[12] Hensley hit his first major league home run on September 27 in the sixth inning at Minute Maid Park versus Ian Kennedy of the Arizona Diamondbacks.[13] In 2022 he batted 10-for-27 with a home run and five RBI with the Astros.[14] He appeared at second base, third base, shortstop, left field, and as a DH and pinch hitter.[15]
Hensley made his postseason debut in Game 1 of the 2022 American League Division Series (ALDS), appearing as a pinch hitter in the ninth inning. He was hit by a Paul Sewald pitch, then replaced by Jake Meyers as pinch runner, who scored the lead run on a Yordan Alvarez three-run walk-off home run for an 8–7 final over the Seattle Mariners. It was the first walk-off home run in an MLB postseason contest with the home team down to their final out in the ninth inning and trailing by more than one run.[16][17] The Astros advanced to the World Series and defeated the Philadelphia Phillies in six games to give Hensley his first career World Series title.[18] In 2023, Hensley played in 30 games for the Astros, batting .119/.213/.167 with one home run and three RBI.[19]
Hensley was optioned to Triple–A Sugar Land to begin the 2024 season.[20] In 81 games for Sugar Land, he batted .234/.352/.376 with seven home runs, 35 RBI, and 17 stolen bases. Hensley was designated for assignment by the Astros on July 22, 2024.[21]
Miami Marlins
On July 29, 2024, Hensley was claimed off waivers by the Miami Marlins.[22] In 23 games for the Marlins, he slashed .212/.293/.288 with one home run, four RBI, and one stolen base. On November 1, Hensley was removed from the 40–man roster and sent outright to the minors.[23] He elected free agency on November 4.[24]