The Dow Jones Industrial Average fell for the first time in four sessions on Tuesday as investors digested a strong rally from the previous session, while a decline in Walgreens Boots Alliance pressured the index.

The 30-stock Dow closed 79.29 points lower at 26,179.13. The ended the day just above the flatline at 2,867.24, while the Nasdaq Composite gained 0.25 percent to close at 7,848.69.

Consumer staples and energy were the worst-performing sectors in the S&P 500, sliding 0.8 percent and 0.7 percent, respectively. Real estate outperformed, rising 0.9 percent, while materials climbed 0.4 percent.

"Today looks like consolidation," said Larry Benedict, founder of The Opportunistic Trader. But "we've definitely broken out of that range around 2,800; we're now around 2,870. We could go to the high" seen last year.

Benedict added the March jobs report — which is scheduled for release Friday morning — could be the catalyst for stocks to reach record highs. "These numbers on Friday are really much more important to what's going to happen in the next move from here."

The moves Tuesday come after strong manufacturing data out of the U.S. and China raised sentiment during Monday's session, with the Dow closing above 26,000 points for the first time since Feb. 26. The 30-stock index also gained more than 300 points on Monday, while the S&P 500 and Nasdaq both rallied more than 1 percent.