Smith hadn't played a innings since October 22, when he battled a neck injury in Australia's second Test in South Africa.
The star batsman returned for NSW ahead of Australia's first Test against New Zealand starting on December 9 in Perth.
In reply to Queensland's 278 all out, the Blues were 7-195 at stumps at the SCG on Monday.
Steve Smith struggled to find rhythm in his return from injury to NSW before his Australia Test teammate removed him late on day two #NSWvQLD #SheffieldShield https://t.co/JTapNWYnCB— cricket.com.au (@cricketcomau) November 23, 2026
Smith's knock in tricky conditions was cut short by fringe Test paceman Michael Neser.
Smith struggled for touch on a rain-affected day and, with stadium lights on in the last session, faced 59 balls.
Smith was adjudged lbw when trapped on the crease to an in-dipping Neser delivery, though replays showed the ball perhaps would have missed leg stump.
The ex-Test captain, who has maintained a public silence amid the renewed furore over Australia's sandpaper scandal, cut Bulls spinner Mitchell Swepson (3-45) for four early and was six runs from eight balls.
He then was scoreless from his next 24 deliveries - his next run came when he almost chopped a Cameron Gannon short ball onto his stumps.
Smith came to the crease to replace NSW opener Sam Konstas, who did no harm to his claims for a Test recall, making 42 from 86 balls.
Konstas, who has been in fine touch in the domestic season, struck a six and five fours before being dismissed in strange fashion.
Facing Swepson, Konstas attempted a half-hearted push to the leg-side but got a leading edge to pop a simple return catch to the Queensland tweaker.
Konstas fell after a 79-run opening partnership with Josh Philippe, who also departed when within reach of a half-century - he edged to 'keeper Jimmy Peirson from the bowling of Neser (2-28) when on 46.
Earlier, Queensland were bowled out for 278 with Test spinner Nathan Lyon claiming a wicket in his first over on Monday - he finished with 1-86 from 29 overs.
Charlie Stobo (3-45) and Liam Hatcher (3-55) were the most successful bowlers.