Both the resistor and diode are connected in series so the amount of current in both the of them will remain the same which is 20μA.
The potential drop across resistor will be equal to,
V=20×10−6×20
=0.4mV
The potential drop across diode is thus,
VD=(5−0.4×10−3)V
=4.9996V