A man found with a machete told a court he had taken it away from his son’s friend and just forgot about it being in his home.