The Prophet ﷺ said: If anyone swears a false oath in confinement, he should make his seat in Hell on account of his (act). (Using translation from Abū Dāʾūd 3242)
عَنِ النَّبِيِّ ﷺ قَالَ مَنْ حَلَفَ عَلَى يَمِينٍ كَاذِبَةٍ مَصْبُورَةٍ فَلْيَتَبَوَّأْ بِوَجْهِهِ مَقْعَدَهُ مِنَ النَّارِ