I wanted to ask whether it is obligatory to pray at the mosque for someone who has reached the age of puberty, and if his parents disagree with him even thoufh he lives close, then in this matter what does he have to do?
Allah's Messenger (ﷺ) said, "By Him in Whose Hand my soul is I was about to order for collecting firewood (fuel) and then order Someone to pronounce the Adhan for the prayer and then order someone to lead the prayer then I would go from behind and burn the houses of men who did not present themselves for the (compulsory congregational) prayer. By Him, in Whose Hands my soul is, if anyone of them had known that he would get a bone covered with good meat or two (small) pieces of meat present in between two ribs, he would have turned up for the `Isha' prayer.'
We all know how soft our prophet (SAW) was, and he want to burn the houses of those who don't come for obligatory prayer to mosque.
I cannot say anything about your next question " if his parents disagree with him....."
Show this hadith and pray for them, may Allah guide all of us.