A cordon was put in place as police conducted inquiries at Sanquhar Street in Splott, Cardiff, on Sunday morning.
South Wales Police said the man’s injuries were not life-threatening. It said it had received reports of a robbery at about 04:35 BST.
“The cordon has now been removed and the local community are thanked for their support and patience,” it said.
The force is appealing for witnesses or anyone with information to come forward.
More news from Cardiff