Emergency services were called to Darley Avenue, in Athersley, at around 11pm on Friday, following reports that Mr Riley was seriously injured.
He was taken to hospital but died in the early hours of Saturday morning - a post-mortem examination concluded that he died as a result of a stab wound to his chest.
Martyn Wilson, 37, of Monsal Crescent has been charged with murder and Julie Evans, 40, also of Monsal Crescent, has been charged with assisting an offender.
They have been remanded in custody and will appear before Sheffield Magistrates’ Court this morning.
A spokesperson for South Yorkshire Police said: “As enquiries continue, detectives remain keen to hear from anyone with information.
“You can call us on 101 or if you prefer to stay completely anonymous, you can contact the independent charity Crimestoppers via their website crimestoppers-uk.org or by calling their UK contact centre on 0800 555 111.
“The incident number to quote is 1227 of June 26.”