By nightfall, when she came back from the city, he was groaning in pain.
He was in pain when she came back.