The Apostle Peter wishes to express this thought: Judas at first belonged to the apostolic choir, but later fell away from Christ by selling Him. For this, the terrible judgment of God overtook him, already revealed in his death.
In this, he says (v. 20), the words of the Psalmist were fulfilled: "Let his habitation be desolate, and let no one dwell in it" (Ps 68:26), and, "Let another take his office" (Ps 108:8).
Out of the unhappy passion of love of money, Judas sold his Christ and Lord. Yet it was not appointed for him to use the thirty pieces of silver for himself, nor what was acquired with them.
More than this, the Field of Blood, Judas's property acquired with the reward of unrighteousness, was not inhabited by any living person. Its inhabitants were the dead.
Read more (85 words)
Judas did not live long after his lawless act. By self-willed death he shortened his life and freed the place of an apostle of Christ, leaving it to another.
Thus, according to the Apostle Peter's view, David as God's anointed one was a type of Jesus Christ. Likewise, David's enemies prefigured the enemies of Jesus Christ, and in particular Judas the betrayer.
Therefore the curses pronounced by David upon his enemies came to complete fulfillment upon the Savior's enemies, and in this case upon Judas.