The noun needs an ending too.
Many weak masculine nouns add -(e)n outside nominative singular. Learn der Student → den/dem/des Studenten as a set.
Hinglish hintN-Deklination mein sirf article nahin, noun bhi badalta hai: der Student, den Studenten.
See the basic form
Nominative singular has the dictionary form.
Ich spreche mit dem Studenten.
Aha! See the common trap
Not thisIch spreche mit dem Student.
Try thisIch spreche mit dem Studenten.
Student is a weak masculine noun and needs -en in dative singular.
More examples, less guessing
Ich spreche mit dem Studenten.I speak with the student.
Ich sehe den Studenten.Practice the highlighted construction in another context.
Ich helfe dem Patienten.Practice the highlighted construction in another context.