A man accused of murder stole £40 from his alleged victim to pay a £40 drugs debt, a court heard